Package: liborigin Version: 20080225-2 Severity: wishlist Tags: patch Hi,
liborigin fails to build if the linker flag --as-needed is used. [1,2] The reason is that --as-needed forces a strict linking order (symbol users given in front of symbol definitions). Attached is a patch that fixes the problem. Cheers, Stefan. [1]: <http://people.ubuntuwire.org/~lucas/ubuntu-nbs/32/liborigin_20080225-2_lubuntu32.buildlog> [2]: <http://people.ubuntuwire.org/~lucas/ubuntu-nbs/64/liborigin_20080225-2_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-8-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
Index: liborigin-20080225/Makefile.LINUX =================================================================== --- liborigin-20080225.orig/Makefile.LINUX 2010-12-17 22:07:51.030175732 +0100 +++ liborigin-20080225/Makefile.LINUX 2010-12-17 22:08:03.970175732 +0100 @@ -23,7 +23,7 @@ ln -sf $(TARGET3) $(TARGET2)) $(OPJ2DAT): $(OPJ2DAT).cpp - $(CC) $(CFLAGS) -L lib/ -o $(OPJ2DAT) -lorigin $(OPJ2DAT).cpp + $(CC) $(CFLAGS) -L lib/ -o $(OPJ2DAT) $(OPJ2DAT).cpp -lorigin clean : rm -f *~ *.o $(OPJ2DAT) $(TARGET0)*

