2021-07-09 16:28:46 -04:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2021-12-23 22:47:26 -05:00
|
|
|
# If the user has -pie in their LDFLAGS, remove it; it breaks the build.
|
|
|
|
printf "\n\n\nHey, boss. We're gonna be removing -pie from your LDFLAGS if it's there, to make sure the build succeeds.\n\n\n"
|
|
|
|
sleep 3
|
|
|
|
|
|
|
|
LDFLAGS=$(echo $LDFLAGS|sed 's/-pie//')
|
2021-11-18 07:24:09 -05:00
|
|
|
export FORCE_UNSAFE_CONFIGURE=1
|
2021-07-09 16:28:46 -04:00
|
|
|
export CFLAGS="$CFLAGS -static"
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr
|
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR="$1" install
|