]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
travis: disable gold linker with OSX
authorVincent Bernat <vincent@bernat.im>
Thu, 6 Oct 2016 08:15:37 +0000 (10:15 +0200)
committerVincent Bernat <vincent@bernat.im>
Thu, 6 Oct 2016 08:15:37 +0000 (10:15 +0200)
It seems it is not compiled anymore. See:
 https://travis-ci.org/vincentbernat/lldpd/jobs/165445935

tests/ci/run.sh

index a3707d9199d060d8fffeb7f7fd40eafcc249815d..83fd6569bf47d2dbe190afa30558ac4f5f639ff7 100755 (executable)
@@ -3,13 +3,19 @@
 set -e
 
 [ $CC != gcc ] || CC=gcc-5
-[ $(uname -s) != Linux ] || LLDPD_CONFIG_ARGS="$LLDPD_CONFIG_ARGS --enable-sanitizers"
+LLDPD_CONFIG_ARGS="$LLDPD_CONFIG_ARGS --enable-pie"
+LLDPD_CONFIG_ARGS="$LLDPD_CONFIG_ARGS --localstatedir=/var --sysconfdir=/etc --prefix=/usr"
+case "$(uname -s)" in
+    Linux)
+        LLDPD_CONFIG_ARGS="$LLDPD_CONFIG_ARGS --enable-sanitizers"
+        ;;
+    Darwin)
+        LLDPD_CONFIG_ARGS="$LLDPD_CONFIG_ARGS LDFLAGS=-fuse-ld=gold"
+        ;;
+esac
 
 ./autogen.sh
-./configure $LLDPD_CONFIG_ARGS \
-            --enable-pie \
-            --localstatedir=/var --sysconfdir=/etc --prefix=/usr \
-            CFLAGS="-O1 -g" LDFLAGS="-fuse-ld=gold" || {
+./configure $LLDPD_CONFIG_ARGS CFLAGS="-O1 -g" || {
     cat config.log
     exit 1
 }