Package: joystick
Version: 20051019-12
Severity: wishlist
Tags: patch

Hi,

thanks for maintaining joystick.

The package fails to build from source, if --as-needed is used as linker 
flag [1,2], since that enforces strict ordering (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/joystick_20051019-12_lubuntu32.buildlog>
[2]:
<http://people.ubuntuwire.org/~lucas/ubuntu-nbs/64/joystick_20051019-12_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: joystick-20051019/utils/Makefile
===================================================================
--- joystick-20051019.orig/utils/Makefile	2010-12-13 23:03:37.394719742 +0100
+++ joystick-20051019/utils/Makefile	2010-12-13 23:05:58.024719744 +0100
@@ -41,7 +41,7 @@
 	$(RM) *.o *.swp $(PROGRAMS) *.orig *.rej map *~
 
 ffcfstress: ffcfstress.c
-	$(CC) -O2 -funsigned-char -lm ffcfstress.c -o ffcfstress
+	$(CC) -O2 -funsigned-char ffcfstress.c -lm -o ffcfstress
 
 ffmvforce.o: ffmvforce.c
 	$(CC) -c $(CFLAGS) $(CPPFLAGS) $^ -o $@ `sdl-config --cflags`
@@ -54,7 +54,7 @@
 jscal.o: jscal.c axbtnmap.h
 
 jscal: jscal.o axbtnmap.o
-	$(CC) $(CFLAGS) $(CPPFLAGS) -lm $^ -o $@
+	$(CC) $(CFLAGS) $(CPPFLAGS) $^ -lm -o $@
 
 jstest.o: jstest.c axbtnmap.h
 
@@ -64,7 +64,7 @@
 	$(CC) $(CFLAGS) $(CPPFLAGS) gencodes.c -o gencodes
 
 acceltest: acceltest.c
-	$(CC) $(CFLAGS) $(CPPFLAGS) -lm $^ -o $@
+	$(CC) $(CFLAGS) $(CPPFLAGS) $^ -lm -o $@
 
 jskeepalive: jskeepalive.c
 	$(CC) $(CFLAGS) $(CPPFLAGS) $^ -o $@

Reply via email to