Ignore --prefix-file-map compiler option whist running testsuite.
authorMatthias Klose <doko@debian.org>
Thu, 29 Jun 2023 13:44:52 +0000 (14:44 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 29 Jun 2023 13:44:52 +0000 (14:44 +0100)
binutils/Makefile.am
binutils/Makefile.in
ld/Makefile.am
ld/Makefile.in

index 904785bd549a60ee8c7402fe4ad8b2874091b7b1..bb86036dd895d0b2013433cf9dabafd2cfc138cb 100644 (file)
@@ -214,7 +214,7 @@ check-DEJAGNU: site.exp
                CC="$(CC)" CFLAGS="$(CFLAGS)" \
                CC_FOR_BUILD="$(CC_FOR_BUILD)" \
                CC_FOR_TARGET="$(CC_FOR_TARGET)" \
-               CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET) -O0" \
+               CFLAGS_FOR_TARGET="$(filter-out -ffile-prefix-map=%,$(CFLAGS_FOR_TARGET)) -O0" \
                $(RUNTESTFLAGS); \
        else echo "WARNING: could not find \`runtest'" 1>&2; :;\
        fi
index 0b8b8d48b0d7dca761394e32493d1250de7fd42b..2de46be1b30d7b1729ad3add8a5853255c40422e 100644 (file)
@@ -1837,7 +1837,7 @@ check-DEJAGNU: site.exp
                CC="$(CC)" CFLAGS="$(CFLAGS)" \
                CC_FOR_BUILD="$(CC_FOR_BUILD)" \
                CC_FOR_TARGET="$(CC_FOR_TARGET)" \
-               CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET) -O0" \
+               CFLAGS_FOR_TARGET="$(filter-out -ffile-prefix-map=%,$(CFLAGS_FOR_TARGET)) -O0" \
                $(RUNTESTFLAGS); \
        else echo "WARNING: could not find \`runtest'" 1>&2; :;\
        fi
index 0e025867f5fee8d60e7f2c788d375ba91831db18..c3adbb0ccadacb5060988fe0aa24700b7cb489b4 100644 (file)
@@ -992,9 +992,9 @@ check-DEJAGNU: site.exp
                CC="$(CC)" CFLAGS="$(CFLAGS)" \
                CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" \
                CC_FOR_TARGET="$(CC_FOR_TARGET)" \
-               CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
+               CFLAGS_FOR_TARGET="$(filter-out -ffile-prefix-map=%,$(CFLAGS_FOR_TARGET))" \
                CXX_FOR_TARGET="$(CXX_FOR_TARGET)" \
-               CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
+               CXXFLAGS_FOR_TARGET="$(filter-out -ffile-prefix-map=%,$(CXXFLAGS_FOR_TARGET))" \
                OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" CTFLIB="$(TESTCTFLIB) $(ZLIB)" \
                SFRAMELIB="$(TESTSFRAMELIB)" \
                JANSSON_LIBS="$(JANSSON_LIBS)" ZSTD_LIBS="$(ZSTD_LIBS)" \
index 7939cf18eda2d87231e61d405076600a2f33f727..d1a5602643787c240b5323c6c09b9d2bbc813e79 100644 (file)
@@ -2688,9 +2688,9 @@ check-DEJAGNU: site.exp
                CC="$(CC)" CFLAGS="$(CFLAGS)" \
                CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" \
                CC_FOR_TARGET="$(CC_FOR_TARGET)" \
-               CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
+               CFLAGS_FOR_TARGET="$(filter-out -ffile-prefix-map=%,$(CFLAGS_FOR_TARGET))" \
                CXX_FOR_TARGET="$(CXX_FOR_TARGET)" \
-               CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
+               CXXFLAGS_FOR_TARGET="$(filter-out -ffile-prefix-map=%,$(CXXFLAGS_FOR_TARGET))" \
                OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" CTFLIB="$(TESTCTFLIB) $(ZLIB)" \
                SFRAMELIB="$(TESTSFRAMELIB)" \
                JANSSON_LIBS="$(JANSSON_LIBS)" ZSTD_LIBS="$(ZSTD_LIBS)" \