-
.pc/linker-flags.patch/configure
-
--- 3.12.1-2/debian/patches/linker-flags.patch 1970-01-01 00:00:00.000000000 +0000
+++ 3.12.1-2ubuntu3/debian/patches/linker-flags.patch 2011-11-18 17:55:08.000000000 +0000
@@ -0,0 +1,25 @@
+Index: ocaml-3.12.1/configure
+===================================================================
+--- ocaml-3.12.1.orig/configure 2011-11-18 17:45:15.000000000 +0000
++++ ocaml-3.12.1/configure 2011-11-18 17:54:51.104603036 +0000
+@@ -285,7 +285,9 @@
+ if cc="$bytecc" sh ./hasgot -mieee; then
+ bytecccompopts="-mieee $bytecccompopts";
+ fi
+- bytecclinkopts="-Wl,--no-relax";;
++ bytecclinkopts="-Wl,--hash-style=both -Wl,--as-needed -Wl,--build-id -Wl,--no-relax";;
++ gcc,*-*-linux*)
++ bytecclinkopts="-Wl,--hash-style=both -Wl,--as-needed -Wl,--build-id";;
+ cc,mips-*-irix6*)
+ # Add -n32 flag to ensure compatibility with native-code compiler
+ bytecccompopts="-n32"
+@@ -740,7 +742,8 @@
+ nativecccompopts="$gcc_warnings -DSHRINKED_GNUC";;
+ *,*,rhapsody,*) nativecccompopts="$gcc_warnings -DDARWIN_VERSION_6 $dl_defs"
+ if $arch64; then partialld="ld -r -arch ppc64"; fi;;
+- alpha,gcc*,linux*,*) nativecclinkopts="-Wl,--no-relax";;
++ alpha,gcc*,linux*,*) nativecclinkopts="-Wl,--hash-style=both -Wl,--as-needed -Wl,--build-id -Wl,--no-relax";;
++ *,gcc*,linux*,*) nativecclinkopts="-Wl,--hash-style=both -Wl,--as-needed -Wl,--build-id";;
+ *,gcc*,cygwin,*) nativecccompopts="$gcc_warnings -U_WIN32";;
+ amd64,gcc*,macosx,*) partialld="ld -r -arch x86_64";;
+ amd64,gcc*,solaris,*) partialld="ld -r -m elf_x86_64";;
-
--- 3.12.1-2/debian/control 2011-11-01 14:29:48.000000000 +0000
+++ 3.12.1-2ubuntu3/debian/control 2011-12-05 16:09:28.000000000 +0000
@@ -194,7 +194,7 @@ Description: Runtime system for OCaml by
you do not require any graphical capabilities for your runtime.
Package: ocaml-native-compilers
-Architecture: amd64 armel hurd-i386 i386 kfreebsd-i386 kfreebsd-amd64 lpia powerpc sparc
+Architecture: amd64 armel armhf hurd-i386 i386 kfreebsd-i386 kfreebsd-amd64 lpia powerpc sparc
Depends:
ocaml-nox (= ${binary:Version}),
gcc, binutils,
-
--- 3.12.1-2/.pc/applied-patches 2012-05-22 04:05:06.767368667 +0000
+++ 3.12.1-2ubuntu3/.pc/applied-patches 2012-05-22 04:05:07.299381665 +0000
@@ -13,3 +13,4 @@
0013-ocamlopt-arm-add-.type-directive-for-code-symbols.patch
0014-Add-support-for-ENOTSUP.patch
0015-Do-not-add-R-dir-in-X11-link-options-on-GNU-kFreeBSD.patch
+linker-flags.patch
-
--- 3.12.1-2/configure 2012-05-22 04:05:06.000000000 +0000
+++ 3.12.1-2ubuntu3/configure 2012-05-22 04:05:07.000000000 +0000
@@ -285,7 +285,9 @@ case "$bytecc,$host" in
if cc="$bytecc" sh ./hasgot -mieee; then
bytecccompopts="-mieee $bytecccompopts";
fi
- bytecclinkopts="-Wl,--no-relax";;
+ bytecclinkopts="-Wl,--hash-style=both -Wl,--as-needed -Wl,--build-id -Wl,--no-relax";;
+ gcc,*-*-linux*)
+ bytecclinkopts="-Wl,--hash-style=both -Wl,--as-needed -Wl,--build-id";;
cc,mips-*-irix6*)
# Add -n32 flag to ensure compatibility with native-code compiler
bytecccompopts="-n32"
@@ -740,7 +742,8 @@ case "$arch,$nativecc,$system,$host_type
nativecccompopts="$gcc_warnings -DSHRINKED_GNUC";;
*,*,rhapsody,*) nativecccompopts="$gcc_warnings -DDARWIN_VERSION_6 $dl_defs"
if $arch64; then partialld="ld -r -arch ppc64"; fi;;
- alpha,gcc*,linux*,*) nativecclinkopts="-Wl,--no-relax";;
+ alpha,gcc*,linux*,*) nativecclinkopts="-Wl,--hash-style=both -Wl,--as-needed -Wl,--build-id -Wl,--no-relax";;
+ *,gcc*,linux*,*) nativecclinkopts="-Wl,--hash-style=both -Wl,--as-needed -Wl,--build-id";;
*,gcc*,cygwin,*) nativecccompopts="$gcc_warnings -U_WIN32";;
amd64,gcc*,macosx,*) partialld="ld -r -arch x86_64";;
amd64,gcc*,solaris,*) partialld="ld -r -m elf_x86_64";;
-
--- 3.12.1-2/debian/native-archs 2011-11-01 14:29:48.000000000 +0000
+++ 3.12.1-2ubuntu3/debian/native-archs 2011-12-05 16:08:52.000000000 +0000
@@ -1 +1 @@
-amd64 armel hurd-i386 i386 kfreebsd-i386 kfreebsd-amd64 lpia powerpc sparc
+amd64 armel armhf hurd-i386 i386 kfreebsd-i386 kfreebsd-amd64 lpia powerpc sparc
-
--- 3.12.1-2/debian/patches/series 2011-11-01 14:29:49.000000000 +0000
+++ 3.12.1-2ubuntu3/debian/patches/series 2011-11-18 17:50:35.000000000 +0000
@@ -13,3 +13,4 @@
0013-ocamlopt-arm-add-.type-directive-for-code-symbols.patch
0014-Add-support-for-ENOTSUP.patch
0015-Do-not-add-R-dir-in-X11-link-options-on-GNU-kFreeBSD.patch
+linker-flags.patch