mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
4e08c5fcd8
The check_dep macro allows to pass additional compiler & linker options as 5th argument. This argument might contain shared libraries to link against (i.e. -lsomething). To ensure that the check_dep macro always attempts to link to these libraries '-Wl,--no-as-needed' is needed. At least on Ubuntu '-Wl,--as-needed' is the default, and with that, the library might get skipped if it is not really needed by the program built by the check_dep macro. Furthermore, with '-Wl,--as-needed' the order of the arguments matters, and thus a library specified in the 5th argument is at the wrong position, which leads to link errors and thus the check_dep macro will report that the dependency is not fulfilled, although it might be fulfilled. Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com> Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
17 KiB
17 KiB