Skip to content

Commit 2a60ac3

Browse files
authored
libtool to using right linker when cross-compiling
1 parent 2168ed8 commit 2a60ac3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

configure.ac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,8 @@ if test "$CROSS_COMPILE" == "1"; then
277277
PATH="${ARM_LD_PATH}/:$PATH"
278278
CXXLINK="${ARM_LD_PATH}/ld"
279279
LINK="${ARM_LD_PATH}/ld"
280+
LD="${ARM_LD_PATH}/ld"
281+
LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,/usr/lib -Wl,-rpath-link -Wl,${ARM_LD_PATH}/usr/lib -L${ARM_LD_PATH}/lib -L${ARM_LD_PATH}/usr/lib"
280282
fi
281283

282284
AM_CONDITIONAL([COND_GCOV],[test x"$cond_gcov" = x"yes"])

0 commit comments

Comments
 (0)