mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
ae7217806b
Now that we've concluded that the compiler is used for calling the actual linker, it doesn't make much sense to select a different compiler for linking. Even worse, it's prone to error. A naive user might try to compile s390-tools using clang as follows: $ make -C genprotimg CC=clang ... CC genprotimg/src/utils/curl.o LINK genprotimg/src/genprotimg /usr/bin/ld: genprotimg.o: `stderr@@GLIBC_2.2' non-PLT reloc for symbol defined in shared library and accessed from executable (rebuild file with -fPIC ?) /usr/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status Therefore it makes sense to use the same compiler for linking as well. Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Acked-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
13 KiB
13 KiB