Skip to content
Snippets Groups Projects
Commit 052bbc20 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Fix ltconfig for FreeBSD 3 (elf detection was wrong).

Also fixed "empty translation unit" problem reported by
  Randy Kunkee <kunkee@pluto.ops.NeoSoft.com>
parent 3a5e383d
No related branches found
No related tags found
No related merge requests found
...@@ -541,7 +541,7 @@ if test -n "$pic_flag"; then ...@@ -541,7 +541,7 @@ if test -n "$pic_flag"; then
# Check to make sure the pic_flag actually works. # Check to make sure the pic_flag actually works.
echo $ac_n "checking if $compiler PIC flag $pic_flag works... $ac_c" 1>&6 echo $ac_n "checking if $compiler PIC flag $pic_flag works... $ac_c" 1>&6
$rm conftest* $rm conftest*
echo > conftest.c echo "int __my_integer = 0" \; > conftest.c
save_CFLAGS="$CFLAGS" save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $pic_flag -DPIC" CFLAGS="$CFLAGS $pic_flag -DPIC"
echo "$progname:547: checking if $compiler PIC flag $pic_flag works" >&5 echo "$progname:547: checking if $compiler PIC flag $pic_flag works" >&5
...@@ -1133,8 +1133,8 @@ freebsd2*) ...@@ -1133,8 +1133,8 @@ freebsd2*)
freebsd3*) freebsd3*)
version_type=freebsd version_type=freebsd
library_names_spec='${libname}${release}.so.$versuffix $libname.so' library_names_spec='${libname}${release}.so.$versuffix $libname.so'
if [ $PORTOBJFORMAT = elf ]; then if [ -x `/usr/bin/objformat` ]; then
finish_cmds='PATH="$PATH:/sbin" OBJFORMAT="$PORTOBJFORMAT" ldconfig -m $libdir' finish_cmds='PATH="$PATH:/sbin" OBJFORMAT=`objformat` ldconfig -m $libdir'
else else
finish_cmds='PATH="$PATH:/sbin" ldconfig -m $libdir' finish_cmds='PATH="$PATH:/sbin" ldconfig -m $libdir'
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment