diff --git a/contrib/guix/libexec/build.sh b/contrib/guix/libexec/build.sh index 7340b0625f..62e41c4053 100755 --- a/contrib/guix/libexec/build.sh +++ b/contrib/guix/libexec/build.sh @@ -240,12 +240,15 @@ mkdir -p "$OUTDIR" ########################### # CONFIGFLAGS -CONFIGFLAGS="--enable-reduce-exports --disable-bench --disable-gui-tests --disable-fuzz-binary" +CONFIGFLAGS="--enable-reduce-exports --disable-bench --disable-tests --disable-fuzz-binary" +case "$HOST" in + *mingw*) CONFIGFLAGS+=" --disable-shared" ;; +esac # CFLAGS HOST_CFLAGS="-O2 -g" case "$HOST" in - *linux*) HOST_CFLAGS+=" -ffile-prefix-map=${PWD}=." ;; + *linux*) HOST_CFLAGS+=" -ffile-prefix-map=${PWD}=. -fPIE" ;; *mingw*) HOST_CFLAGS+=" -fno-ident" ;; *darwin*) unset HOST_CFLAGS ;; esac @@ -357,11 +360,11 @@ mkdir -p "$DISTSRC" ( cd installed - case "$HOST" in - *mingw*) - mv --target-directory="$DISTNAME"/lib/ "$DISTNAME"/bin/*.dll - ;; - esac +# case "$HOST" in +# *mingw*) +# mv --target-directory="$DISTNAME"/lib/ "$DISTNAME"/bin/*.dll +# ;; +# esac # Prune libtool and object archives find . -name "lib*.la" -delete