[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnulib macro to check for PIC for a dependent library?
From: |
dmitrii . pasechnik |
Subject: |
gnulib macro to check for PIC for a dependent library? |
Date: |
Mon, 24 Jun 2024 19:26:33 +0100 |
Building shared libraries which depend upon
other libraries breaks whenever a dependency found (by something like
AC_SEARCH_LIBS) was not built with -fPIC (or whatever
the name of this option might be on the platform in question).
And, preferably, one might want to check that the dependency is
a dynamic library itself.
Are there any gnulib (or autoconf) macros available which can help here?
Thinking of writing such a macro myself, it seems that the way to go
would be to write test C code to build a shared library, and try
building it. But this does not look as something that chains too well with
the other tools (i.e. libtool would be the one needed).
Best,
Dima
signature.asc
Description: PGP signature
- gnulib macro to check for PIC for a dependent library?,
dmitrii . pasechnik <=