]> git.wh0rd.org Git - elf2flt.git/commitdiff
travis: disable PIE in tests
authorMike Frysinger <vapier@gentoo.org>
Wed, 13 May 2020 11:23:08 +0000 (07:23 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 13 May 2020 11:25:39 +0000 (07:25 -0400)
Since all current prebuilt binutils libs are built w/out PIC/PIE,
disable PIE usage in tests.  Newer toolchains are defaulting this
to on which breaks us.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
travis/main.sh

index 63a1856d269bc9c7fec286d25bc83b8bb30e991c..7a7e5f43c5626d89d5d9e14386d399bf5b0646de 100755 (executable)
@@ -41,6 +41,9 @@ main() {
                        git clone --depth=1 https://github.com/uclinux-dev/prebuilts-binutils-libs ../prebuilts-binutils-libs
        fi
 
+       # Newer compilers default to PIE which the prebuilts aren't using.
+       export CFLAGS='-O2 -pipe -no-pie'
+
        local a b
        for a in "${ARCHES[@]}" ; do
                for b in "${BINUTILS_VERS[@]}" ; do