mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-01-12 14:06:37 +08:00
* ltmain.in (lt_preloaded_setup): function added to symbol list
source file to work around FreeBSD problem
This commit is contained in:
parent
8d2800fa9a
commit
a4191f6ab5
@ -1,5 +1,8 @@
|
||||
1999-01-19 Alexandre Oliva <oliva@dcc.unicamp.br>
|
||||
|
||||
* ltmain.in (lt_preloaded_setup): function added to symbol list
|
||||
source file to work around FreeBSD problem
|
||||
|
||||
* Makefile.am (check-local): depend on libltdl/Makefile
|
||||
|
||||
* mdemo/Makefile.am (mdemo_LDFLAGS, mdemo_LDADD): moved -dlopen
|
||||
|
10
ltmain.in
10
ltmain.in
@ -2006,6 +2006,11 @@ lt_preloaded_symbols[] =
|
||||
{0, (lt_ptr_t) 0}
|
||||
};
|
||||
|
||||
/* This works around a problem in FreeBSD linker */
|
||||
static const void *lt_preloaded_setup() {
|
||||
return lt_preloaded_symbols;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif\
|
||||
@ -2013,8 +2018,9 @@ lt_preloaded_symbols[] =
|
||||
fi
|
||||
|
||||
# Now compile the dynamic symbol file.
|
||||
$show "(cd $objdir && $C_compiler -c$no_builtin_flag \"$dlsyms\")"
|
||||
$run eval '(cd $objdir && $C_compiler -c$no_builtin_flag "$dlsyms")' || exit $?
|
||||
# pic_flag works around a bug in FreeBSD linker
|
||||
$show "(cd $objdir && $C_compiler -c$no_builtin_flag $pic_flag -DPIC \"$dlsyms\")"
|
||||
$run eval '(cd $objdir && $C_compiler -c$no_builtin_flag $pic_flag -DPIC "$dlsyms")' || exit $?
|
||||
|
||||
# Transform the symbol file into the correct name.
|
||||
compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$objdir/${output}S.${objext}%"`
|
||||
|
Loading…
Reference in New Issue
Block a user