]> git.sur5r.net Git - openldap/commitdiff
Fix ltconfig for FreeBSD 3 (elf detection was wrong).
authorKurt Zeilenga <kurt@openldap.org>
Fri, 18 Dec 1998 21:54:06 +0000 (21:54 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 18 Dec 1998 21:54:06 +0000 (21:54 +0000)
Also fixed "empty translation unit" problem reported by
  Randy Kunkee <kunkee@pluto.ops.NeoSoft.com>

build/ltconfig

index b746287cd2f19c2bf5954ad00fb0b3845a922151..729792ddb5ad02d292a8e8c4f45a34a9513f5cf3 100755 (executable)
@@ -541,7 +541,7 @@ if test -n "$pic_flag"; then
   # Check to make sure the pic_flag actually works.
   echo $ac_n "checking if $compiler PIC flag $pic_flag works... $ac_c" 1>&6
   $rm conftest*
-  echo > conftest.c
+  echo "int __my_integer = 0" \; > conftest.c
   save_CFLAGS="$CFLAGS"
   CFLAGS="$CFLAGS $pic_flag -DPIC"
   echo "$progname:547: checking if $compiler PIC flag $pic_flag works" >&5
@@ -1133,8 +1133,8 @@ freebsd2*)
 freebsd3*)
   version_type=freebsd
   library_names_spec='${libname}${release}.so.$versuffix $libname.so'
-  if [ $PORTOBJFORMAT = elf ]; then
-  finish_cmds='PATH="$PATH:/sbin" OBJFORMAT="$PORTOBJFORMAT" ldconfig -m $libdir'
+  if [ -x `/usr/bin/objformat` ]; then
+  finish_cmds='PATH="$PATH:/sbin" OBJFORMAT=`objformat` ldconfig -m $libdir'
   else
   finish_cmds='PATH="$PATH:/sbin" ldconfig -m $libdir'
   fi