if we can't determine the gcc4/5 prefer the new gcc5 ABI
authorRobin Gareus <robin@gareus.org>
Tue, 2 Aug 2016 13:50:16 +0000 (15:50 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 2 Aug 2016 13:51:54 +0000 (15:51 +0200)
tools/gccabicheck/Makefile
tools/linux_packaging/stage2.run.in

index 2949e46633ab640a03cd000114bfc276c5135c2f..e891d851310d60931130ecc3688ff52f494f1e34 100644 (file)
@@ -1,7 +1,7 @@
 CFLAGS = -Wall
 LOADLIBES = -ldl
 
-gcc-glibmm-abi-check:
+gcc-glibmm-abi-check: abicheck.c
        $(CC) $(CPPFLAGS) $(CFLAGS) \
                -o gcc-glibmm-abi-check \
                abicheck.c \
index 4c660a21e7479bccf360884f888c878722bda8c0..eb8e3d5cbf9668a21512e6cd05a1fe2a70ec9c73 100755 (executable)
@@ -235,7 +235,7 @@ esac
 ###################
 
 if test -n "$MULTABI_BUNDLE"; then
-       if ! ${NORM_USER} "${PKG_PATH}/.gcc-glibmm-abi-check --gcc5 > /dev/null"; then
+       if ${NORM_USER} "${PKG_PATH}/.gcc-glibmm-abi-check --fail --gcc4 > /dev/null"; then
                ABI=-gcc4
        else
                ABI=-gcc5