Skip to content

Commit

Permalink
libsc-build-wdeps.sh: honor existing variables
Browse files Browse the repository at this point in the history
The CPPFLAGS, CFLAGS and LDFLAGS variables were set clean in this script.
With the present update, we do not overwrite but append to existing values.
  • Loading branch information
cburstedde committed Jan 5, 2024
1 parent 214217c commit 910274a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/libsc-build-wdeps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ cd .. && \
rm -r "jansson-$JVER" "$JTAR" || bdie "jansson"

# provide environment that links to installed zlib and jansson
export CPPFLAGS="-I$PREFIX/zlib/include -I$PREFIX/jansson/include"
export CFLAGS="-O2 -g -Wall \
export CPPFLAGS="$CPPFLAGS -I$PREFIX/zlib/include -I$PREFIX/jansson/include"
export CFLAGS="$CFLAGS -O2 -g -Wall \
-Wl,-rpath=$PREFIX/zlib/lib -Wl,-rpath=$PREFIX/jansson/lib"
export LDFLAGS="-L$PREFIX/zlib/lib -L$PREFIX/jansson/lib"
export LDFLAGS="$LDFLAGS -L$PREFIX/zlib/lib -L$PREFIX/jansson/lib"

# clone, build and install libsc
rm -rf libsc
Expand Down

0 comments on commit 910274a

Please sign in to comment.