Skip to content

Commit 4192272

Browse files
committed
devkitARM: use LDFLAGS from environment
1 parent 2422223 commit 4192272

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dkarm-eabi/scripts/build-gcc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ cd $target/binutils
1010

1111
if [ ! -f configured-binutils ]
1212
then
13-
CPPFLAGS="$cppflags $CPPFLAGS" LDFLAGS=$ldflags ../../binutils-$BINUTILS_VER/configure \
13+
CPPFLAGS="$cppflags $CPPFLAGS" LDFLAGS="$ldflags $LDFLAGS" ../../binutils-$BINUTILS_VER/configure \
1414
--prefix=$prefix --target=$target --disable-nls --disable-werror \
1515
--enable-lto --enable-plugins \
1616
--enable-poison-system-directories \
@@ -41,7 +41,7 @@ cd $target/gcc
4141
if [ ! -f configured-gcc ]
4242
then
4343
CPPFLAGS="$cppflags $CPPFLAGS" \
44-
LDFLAGS="$ldflags" \
44+
LDFLAGS="$ldflags $LDFLAGS" \
4545
CFLAGS_FOR_TARGET="-O2 -ffunction-sections -fdata-sections" \
4646
CXXFLAGS_FOR_TARGET="-O2 -ffunction-sections -fdata-sections" \
4747
LDFLAGS_FOR_TARGET="" \

0 commit comments

Comments
 (0)