Package: atp Version: 1.2-11 Severity: wishlist Tags: patch Hi,
atp fails to build from source, if --as-needed is used as linker flag [1,2]. The reason is that --as-needed enforces a strict linking order (symbol users in front of symbol defintions). Attached is a patch to fix the problem. Cheers, Stefan. [1]: <http://people.ubuntuwire.org/~lucas/ubuntu-nbs/32/atp_1.2-11_lubuntu32.buildlog> [2]: <http://people.ubuntuwire.org/~lucas/ubuntu-nbs/64/atp_1.2-11_lubuntu64.buildlog> -- System Information: Debian Release: squeeze/sid APT prefers natty-updates APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 'natty') Architecture: amd64 (x86_64) Kernel: Linux 2.6.37-10-generic (SMP w/4 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
--- atp-1.2/Makefile +++ atp-1.2/Makefile @@ -4,7 +4,7 @@ # CC=acc # CC=cc CC=gcc -LDFLAGS=-lpaper +LDLIBS=-lpaper #To compile under MSDOS you may have to add -DMSDOS here, e.g., under #TurboC++1.0 @@ -16,7 +16,7 @@ MANDIR=/usr/local/man/man1 atp: atp.o width.o - $(CC) $(CFLAGS) $(LDFLAGS) atp.o width.o -o atp + $(CC) $(CFLAGS) $(LDFLAGS) atp.o width.o $(LDLIBS) -o atp atp.o: atp.c