mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 22:33:28 +00:00
Patch by Yavor Doganov <yavor@gnu.org> to better support precompiler
headers on gcc >= 9. Although this was still working with my gcc 9.3.1.
This commit is contained in:
parent
e7b97a63fc
commit
d57b85cee2
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2020-04-14 Yavor Doganov <yavor@gnu.org>
|
||||
|
||||
* config-precomp-test/run-test.sh: Put $LIBS at the end so that it
|
||||
works with GCC >= 9 (which implies -Wl,--as-needed).
|
||||
|
||||
2020-04-13 Ivan Vucica <ivan@vucica.net>
|
||||
|
||||
* Documentation/announce.texi:
|
||||
|
|
|
@ -77,8 +77,8 @@ fi
|
|||
|
||||
# Try to compile the file first.
|
||||
echo "** Compile the file without precompiled headers" >>"$gs_logfile" 2>&1
|
||||
echo "$CC -o \"$gs_builddir/config-precomp-test.out\" $CFLAGS $CPPFLAGS $LDFLAGS $LIBS config-precomp-test.m" >>"$gs_logfile" 2>&1
|
||||
$CC -o "$gs_builddir/config-precomp-test.out" $CFLAGS $CPPFLAGS $LDFLAGS $LIBS config-precomp-test.m >>"$gs_logfile" 2>&1
|
||||
echo "$CC -o \"$gs_builddir/config-precomp-test.out\" $CFLAGS $CPPFLAGS $LDFLAGS config-precomp-test.m $LIBS" >>"$gs_logfile" 2>&1
|
||||
$CC -o "$gs_builddir/config-precomp-test.out" $CFLAGS $CPPFLAGS $LDFLAGS config-precomp-test.m $LIBS >>"$gs_logfile" 2>&1
|
||||
if test ! "$?" = "0"; then
|
||||
echo "Failure" >>"$gs_logfile" 2>&1
|
||||
rm -f "$gs_builddir/config-precomp-test.out"
|
||||
|
@ -101,8 +101,8 @@ echo "" >>"$gs_logfile" 2>&1
|
|||
|
||||
# Now try to compile again with the preprocessed header. It might get ignored - which is fine.
|
||||
echo "** Compile the file with precompiled headers" >>"$gs_logfile" 2>&1
|
||||
echo "$CC -o \"$gs_builddir/config-precomp-test.out\" $CFLAGS $CPPFLAGS $LDFLAGS $LIBS -I\"$gs_builddir\" config-precomp-test.m" >>"$gs_logfile" 2>&1
|
||||
$CC -o "$gs_builddir/config-precomp-test.out" $CFLAGS $CPPFLAGS $LDFLAGS $LIBS -I"$gs_builddir" config-precomp-test.m >>"$gs_logfile" 2>&1
|
||||
echo "$CC -o \"$gs_builddir/config-precomp-test.out\" $CFLAGS $CPPFLAGS $LDFLAGS -I\"$gs_builddir\" config-precomp-test.m $LIBS" >>"$gs_logfile" 2>&1
|
||||
$CC -o "$gs_builddir/config-precomp-test.out" $CFLAGS $CPPFLAGS $LDFLAGS -I"$gs_builddir" config-precomp-test.m $LIBS >>"$gs_logfile" 2>&1
|
||||
if test ! "$?" = "0"; then
|
||||
echo "Failure" >>"$gs_logfile" 2>&1
|
||||
rm -f "$gs_builddir/config-precomp-test.out" "$gs_builddir/config-precomp-test.h.gch"
|
||||
|
|
Loading…
Reference in a new issue