Skip to content

Commit

Permalink
propagate ldflags
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalieris committed Dec 16, 2016
1 parent 77b1123 commit 3fae82b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipe/build.sh
Expand Up @@ -7,10 +7,10 @@ chmod -R o-w $SRC_DIR

# Give install_name_tool enough room to work its magic
if [ `uname -s` == "Darwin" ]; then
export LDFLAGS="${LDFLAGS} -headerpad_max_install_names"
export LDFLAGS="${LDFLAGS} -Wl,-headerpad_max_install_names"
fi

sh Configure -Dusethreads -Duserelocatableinc -Dprefix=$PREFIX -de
sh Configure -Dusethreads -Duserelocatableinc -Dprefix=$PREFIX -de -Aldflags="$LDFLAGS"
make

# change permissions again after building
Expand Down

0 comments on commit 3fae82b

Please sign in to comment.