Package: unison2.27.57 Version: 2.27.57-3 Severity: wishlist Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu oneiric ubuntu-patch
when building with ld --as-needed the libraries must be placed after the objects needing their symbols. Else the library is not registered as needed and dropped leading to undefined references. See the log in the ubuntu bug: https://bugs.launchpad.net/ubuntu/+source/unison2.27.57/+bug/803210 Attached patch fixes this issue by patching the Makefile.OCaml.
Description: fix build with ld --as-needed when building with ld --as-needed the libraries must be placed after the objects needing their symbols. Else the library is not registered as needed and dropped leading to undefined references. Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/unison2.27.57/+bug/803210 Author: Julian Taylor <jtaylor.deb...@googlemail.com> Index: unison2.27.57-2.27.57/Makefile.OCaml =================================================================== --- unison2.27.57-2.27.57.orig/Makefile.OCaml 2011-07-09 17:32:06.350833248 +0200 +++ unison2.27.57-2.27.57/Makefile.OCaml 2011-07-09 17:32:03.470833246 +0200 @@ -349,7 +349,7 @@ $(NAME)$(EXEC_EXT): $(CAMLOBJS) $(COBJS) @echo Linking $@ - $(CAMLC) -verbose $(CAMLFLAGS) -o $@ $(CFLAGS) $(CAMLLIBS) $(CLIBS) $^ + $(CAMLC) -verbose $(CAMLFLAGS) -o $@ $(CFLAGS) $(CAMLLIBS) $^ $(CLIBS) # Unfortunately -output-obj does not put .o files into the output, only .cmx # files, so we have to use $(LD) to take care of COBJS.
signature.asc
Description: OpenPGP digital signature