Package: aewm++-goodies
Version: 1.0-9
Severity: wishlist
Tags: patch

Hi,
aewm++-goodies fails to build from source, if --as-needed is used as a linker
flag [1,2]. The reason is that --as-needed enforces a strict link order (symbol
users in front of symbol definitions).

Attached is a patch that fixes the problem.

Cheers,
   Stefan.
[1]:
<http://people.ubuntuwire.org/~lucas/ubuntu-nbs/32/aewm++-goodies_1.0-9_lubuntu32.buildlog>
[2]:
<http://people.ubuntuwire.org/~lucas/ubuntu-nbs/64/aewm++-goodies_1.0-9_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
--- aewm++-goodies-1.0/ae_fspanel-1.0/Makefile
+++ aewm++-goodies-1.0/ae_fspanel-1.0/Makefile
@@ -1,11 +1,12 @@
 CC = gcc
 prefix=/usr
 C_FLAGS = -DNOSTDLIB -DHAVE_XPM -Wall -I/usr/X11R6/include -m386 
-malign-loops=2 -malign-jumps=2 -malign-functions=2
-L_FLAGS = -O1 -Xlinker -s -L/usr/X11R6/lib -lX11 -lXpm
+L_FLAGS = -O1 -Xlinker -s -L/usr/X11R6/lib 
+LDLIBS=-lX11 -lXpm
 PROGNAME = aewm++_fspanel
 
 $(PROGNAME): Makefile ae_fspanel.c ae_fspanel.h icon.xpm
-       $(CC) $(C_FLAGS) $(CFLAGS) $(L_FLAGS) $(LDFLAGS) ae_fspanel.c -o 
$(PROGNAME)
+       $(CC) $(C_FLAGS) $(CFLAGS) $(L_FLAGS) $(LDFLAGS) ae_fspanel.c $(LDLIBS) 
-o $(PROGNAME)
        @ls -l $(PROGNAME)
 
 clean: 

Reply via email to