| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I am attempting to build a chunk of code from the open source world (Singular, a computer algebra system). In the course of the build, I get this failure (both PowerPC and Intel):
libtool -dynamic -twolevel_namespace -weak_reference_mismatches weak -undefined dynamic_lookup -o mpsr.so mpsr_Put.dl_o mpsr_PutPoly.dl_o mpsr_GetPoly.dl_o mpsr_sl.dl_o mpsr_Get.dl_o mpsr_GetMisc.dl_o mpsr_Error.dl_o -L/lib -lMPT -lMP ld: for architecture ppc ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option /lib/libMP.a(MP_Util.o) definition of common _fix_log_msg (size 128) /lib/libMP.a(MP_Util.o) definition of common _AnnotFlagsStr (size 32) libtool: internal link edit command failed
After R'ing TFM, I tried adding -single_module to LDFLAGS. That worked, AFAICT, but I'm not sure this is the correct fix.
Also, since Singular is an "autoconf" package, I think I need to add that flag in 'configure.in', where it sets up LDFLAGS during the config run.
So: is this the correct flag/fix, and the right place to change?
ppcMac-darwin)
AC_CHECK_LIB(dl, dlopen)
if test "$ac_cv_lib_dl_dlopen" = yes; then
LD_DYN_FLAGS="-ldl -dynamic"
SFLAGS="-fpic -DPIC"
SLDFLAGS="-dynamic -twolevel_namespace - weak_reference_mismatches weak -undefined dynamic_lookup"
LD=libtool
ac_lib_dl=yes
fi
;;
ix86Mac-darwin)
AC_CHECK_LIB(dl, dlopen)
if test "$ac_cv_lib_dl_dlopen" = yes; then
LD_DYN_FLAGS="-ldl -dynamic"
SFLAGS="-fpic -DPIC"
SLDFLAGS="-dynamic -twolevel_namespace - weak_reference_mismatches weak -undefined dynamic_lookup"
LD=libtool
ac_lib_dl=yes
fi
;;
Bill Northcott
_______________________________________________ Do not post admin requests to the list. They will be ignored. Unix-porting mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/unix-porting/email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.