From d4b4cb30968e9750cf717569bf458d26a80b4613 Mon Sep 17 00:00:00 2001 From: florian Date: Sat, 6 Jan 2007 23:40:22 +0000 Subject: [PATCH] * linux libraries must be build with -Bsymbolic to avoid symbol shadowing git-svn-id: trunk@5833 - --- compiler/systems/t_linux.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/systems/t_linux.pas b/compiler/systems/t_linux.pas index 4081d9d60d..bfcea7f1e8 100644 --- a/compiler/systems/t_linux.pas +++ b/compiler/systems/t_linux.pas @@ -237,7 +237,8 @@ begin with Info do begin ExeCmd[1]:='ld '+platform_select+' $OPT $DYNLINK $STATIC $GCSECTIONS $STRIP -L. -o $EXE $RES'; - DllCmd[1]:='ld '+platform_select+' $OPT $INIT $FINI $SONAME -shared -L. -o $EXE $RES -E'; + { use -Bsymbolic to avoid shadowing } + DllCmd[1]:='ld '+platform_select+' $OPT $INIT $FINI $SONAME -shared -L. -o $EXE $RES -E -Bsymbolic'; DllCmd[2]:='strip --strip-unneeded $EXE'; {$ifdef m68k} libctype:=glibc2;