Skip to content

Commit

Permalink
Merge pull request #238 from vertiond/23.x-guix
Browse files Browse the repository at this point in the history
23.x: build using guix
  • Loading branch information
vertiond authored Sep 10, 2023
2 parents f8c2119 + 092c414 commit 2264426
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions contrib/guix/libexec/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2264426

Please sign in to comment.