e2afa97f51
buildlink2.mk files back into the main trunk. This provides sufficient buildlink2 infrastructure to start merging other packages from the buildlink2 branch that have already been converted to use the buildlink2 framework.
54 lines
2.1 KiB
Text
54 lines
2.1 KiB
Text
$NetBSD: patch-am,v 1.4 2002/08/25 18:38:36 jlam Exp $
|
|
|
|
--- ltcf-c.sh.orig Wed Apr 25 00:05:02 2001
|
|
+++ ltcf-c.sh
|
|
@@ -173,16 +173,6 @@
|
|
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
|
|
;;
|
|
|
|
- darwin* | rhapsody*)
|
|
- allow_undefined_flag='-undefined suppress'
|
|
- archive_cmds='$CC `test .$module = .yes && echo -bundle || echo -dynamiclib` $allow_undefined_flag -o $lib $libobjs $deplibs $linkopts -install_name $rpath/$soname `test -n "$verstring" -a x$verstring != x0.0 && echo $verstring`'
|
|
- # We need to add '_' to the symbols in $export_symbols first
|
|
- #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
|
|
- hardcode_direct=yes
|
|
- hardcode_shlibpath_var=no
|
|
- whole_archive_flag_spec='-all_load $convenience'
|
|
- ;;
|
|
-
|
|
netbsd*)
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
|
@@ -379,6 +369,23 @@
|
|
fix_srcfile_path='`cygpath -w "$srcfile"`'
|
|
;;
|
|
|
|
+ darwin* | rhapsody*)
|
|
+ case "$host_os" in
|
|
+ rhapsody* | darwin1.[012])
|
|
+ allow_undefined_flag='-undefined suppress'
|
|
+ ;;
|
|
+ *) # Darwin 1.3 on
|
|
+ allow_undefined_flag='-flat_namespace -undefined suppress'
|
|
+ ;;
|
|
+ esac
|
|
+ archive_cmds='$CC $(if test .$module = .yes; then echo -bundle; else echo -dynamiclib; fi) $allow_undefined_flag -o $lib $libobjs $deplibs $linkopts -install_name $rpath/$soname $verstring'
|
|
+ # We need to add '_' to the symbols in $export_symbols first
|
|
+ #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols $lib'
|
|
+ hardcode_direct=yes
|
|
+ hardcode_shlibpath_var=no
|
|
+ whole_archive_flag_spec='-all_load $convenience'
|
|
+ ;;
|
|
+
|
|
freebsd1*)
|
|
ld_shlibs=no
|
|
;;
|
|
@@ -644,7 +651,7 @@
|
|
darwin* | rhapsody*)
|
|
# PIC is the default on this platform
|
|
# Common symbols not allowed in MH_DYLIB files
|
|
- lt_cv_prog_cc_pic='-fno-common'
|
|
+ ac_cv_prog_cc_pic='-fno-common'
|
|
;;
|
|
*djgpp*)
|
|
# DJGPP does not support shared libraries at all
|