Package: openmsx Version: 0.8.1-4 Severity: normal Tags: patch Hello,
openmsx failed to build in Ubuntu, because Ubuntu default LDFLAGS contain multiple -Wl options. The build script only cleans up the first one. Linking openmsx... g++ -o derived/x86-linux-debian/bin/openmsx -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -O3 [...many .o files...] -lrt -m32 -Wl,-Bsymbolic-functions -Wl,-Wl,-z,relro -L/usr/lib -lSDL -lSDL_ttf -L/usr/lib/i386-linux-gnu -lpng12 -L/usr/lib -ltcl8.5 -L/usr/lib/i386-linux-gnu -lxml2 -lz -lGL -lGLEW -logg -lvorbis -ltheoradec /usr/bin/ld: unrecognized option '-Wl' /usr/bin/ld: use the --help option for usage information collect2: ld returned 1 exit status make[1]: *** [derived/x86-linux-debian/bin/openmsx] Error 1 Full build logs can be found at https://launchpad.net/ubuntu/+source/openmsx/0.8.1-4 The following patch was applied. Please consider it for its inclusion in Debian. diff -Nru openmsx-0.8.1/debian/patches/dpkg-buildflags.diff openmsx-0.8.1/debian/patches/dpkg-buildflags.diff --- openmsx-0.8.1/debian/patches/dpkg-buildflags.diff 2011-11-11 14:07:39.000000000 +0000 +++ openmsx-0.8.1/debian/patches/dpkg-buildflags.diff 2011-11-25 18:15:53.000000000 +0000 @@ -7,7 +7,7 @@ +++ b/build/flavour-debian.mk @@ -0,0 +1,21 @@ +LDFLAGS += \ -+ $(shell dpkg-buildflags --get LDFLAGS | sed -e 's/-Wl,//') ++ $(shell dpkg-buildflags --get LDFLAGS | sed -e 's/-Wl,//g') + +CXXFLAGS += \ + $(shell dpkg-buildflags --get CFLAGS | sed -e 's/ *-O[0-3] */ /') \ -- System Information: Debian Release: wheezy/sid APT prefers precise-updates APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 'precise-proposed'), (500, 'precise'), (100, 'precise-backports') Architecture: i386 (i686) Kernel: Linux 3.2.0-25-generic (SMP w/2 CPU cores) Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

