Package: libgmpada
Version: 0.0.20100805-1
Severity: wishlist
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch

the package libgmpada fails to build with ld --as-needed
when building with ld --as-needed the libraries must be placed after
the objects needing their symbols.

See the log in the ubuntu bug:
https://bugs.launchpad.net/ubuntu/+source/libgmpada/+bug/770987

Patch:
--- libgmpada-0.0.20100805.orig/Makefile
+++ libgmpada-0.0.20100805/Makefile
@@ -50,8 +50,10 @@ src/gmp-constants.ads: generate_constant
        ./$< > $@
 TO_CLEAN += src/gmp-constants.ads

-generate_constants: CFLAGS += -g -Wall -Wextra
-generate_constants: LDFLAGS += -lgmp
+CFLAGS += -g -Wall -Wextra
+LIBS += -lgmp
+generate_constants: generate_constants.c
+       $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
 TO_CLEAN += generate_constants

 clean:


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to