[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
PATCH: Support for export-symbols for osf[345]* C libraries
From: |
Ganesan Rajagopal |
Subject: |
PATCH: Support for export-symbols for osf[345]* C libraries |
Date: |
Tue, 10 Oct 2000 16:07:59 +0530 (IST) |
Hi,
The attached patch adds support for exporting symbols on OSF platforms.
I have only tested on Compaq Tru64 4.0. If this patch is okay, I'll
submit a similar patch for ltcf-cxx.sh. The patch is against the top
of multi-language-branch.
Ganesan
===================================================================
diff -u -r1.1.2.14 ltcf-c.sh
--- ltcf-c.sh 2000/09/04 08:05:22 1.1.2.14
+++ ltcf-c.sh 2000/10/10 10:15:47
@@ -399,6 +399,7 @@
else
allow_undefined_flag=' -expect_unresolved \*'
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs
$linker_flags -soname $soname `test -n "$verstring" && echo -set_version
$verstring` -update_registry ${objdir}/so_locations -o $lib'
+ archive_expsym_cmds='sed -e "s/^/-exported_symbol /" < $export_symbols >
${lib}.input~$LD -shared${allow_undefined_flag} -hidden -input ${lib}.input
$libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo
-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm
${lib}.input'
fi
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator=:
@@ -411,6 +412,7 @@
else
allow_undefined_flag=' -expect_unresolved \*'
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs
$linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version
$verstring` -update_registry ${objdir}/so_locations -o $lib'
+ archive_expsym_cmds='sed -e "s/^/-exported_symbol /" < $export_symbols >
${lib}.input~$LD -shared${allow_undefined_flag} -hidden -input ${lib}.input
$libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" &&
echo -set_version $verstring` -update_registry ${objdir}/so_locations -o
$lib~$rm ${lib}.input'
fi
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator=:
===================================================================
--
R. Ganesan (address@hidden) | Ph: 91-80-5721856 Ext: 2149
Novell India Development Center. | #include <std_disclaimer.h>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- PATCH: Support for export-symbols for osf[345]* C libraries,
Ganesan Rajagopal <=