mirror of
https://github.com/mhx/dwarfs.git
synced 2025-08-04 02:06:22 -04:00
build: also link against custom gcc static libs
This commit is contained in:
parent
52d8d318ff
commit
b95a96d26e
@ -255,7 +255,9 @@ fi
|
|||||||
|
|
||||||
if [[ "-$BUILD_TYPE-" == *-static-* ]]; then
|
if [[ "-$BUILD_TYPE-" == *-static-* ]]; then
|
||||||
if [[ "-$BUILD_TYPE-" == *-relsize-* ]]; then
|
if [[ "-$BUILD_TYPE-" == *-relsize-* ]]; then
|
||||||
LDFLAGS="${LDFLAGS} -L/opt/static-libs/libstdc++-Os/lib"
|
_LIBSTDCXXDIR="/opt/static-libs/libstdc++-Os/lib"
|
||||||
|
_GCCLIBDIR=$(ls -d1 $_LIBSTDCXXDIR/gcc/*/*)
|
||||||
|
LDFLAGS="${LDFLAGS} -L$_GCCLIBDIR -L$_LIBSTDCXXDIR"
|
||||||
fi
|
fi
|
||||||
CMAKE_ARGS_NONSTATIC="${CMAKE_ARGS}"
|
CMAKE_ARGS_NONSTATIC="${CMAKE_ARGS}"
|
||||||
export LDFLAGS="${LDFLAGS} -L/opt/static-libs/$COMPILER/lib"
|
export LDFLAGS="${LDFLAGS} -L/opt/static-libs/$COMPILER/lib"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user