diff options
author | Martin Dietze <martin@the-little-red-haired-girl.org> | 2009-05-23 13:18:49 +0200 |
---|---|---|
committer | md <md@freiheit.com> | 2009-05-27 21:50:57 +0200 |
commit | eabb7e3ab0a68d76603dce6053f549ec5aeb1075 (patch) | |
tree | b91f218b31237cc76a7e0c72f4412d660c2a7882 /recipes/libusb/libusb1-1.0.0/gcc-3-compatibility.patch | |
parent | 83f70f58f497bcb3dafeb6511446da6dd7bed152 (diff) | |
download | openembedded-eabb7e3ab0a68d76603dce6053f549ec5aeb1075.tar.gz |
libusb: added patch to allow compiling with gcc 3, used by nylon distro * the gcc flags -fvisibility=hidden and -Wno-pointer-sign are removed from configure script and Makefile templates
Diffstat (limited to 'recipes/libusb/libusb1-1.0.0/gcc-3-compatibility.patch')
-rw-r--r-- | recipes/libusb/libusb1-1.0.0/gcc-3-compatibility.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes/libusb/libusb1-1.0.0/gcc-3-compatibility.patch b/recipes/libusb/libusb1-1.0.0/gcc-3-compatibility.patch new file mode 100644 index 0000000000..d1bc6803d8 --- /dev/null +++ b/recipes/libusb/libusb1-1.0.0/gcc-3-compatibility.patch @@ -0,0 +1,22 @@ +--- libusb-1.0.0/configure.ac-orig 2009-02-26 13:18:31.000000000 +0100 ++++ libusb-1.0.0/configure.ac 2009-02-26 13:18:43.000000000 +0100 +@@ -62,7 +62,7 @@ + CFLAGS="$saved_cflags" + + AC_DEFINE([API_EXPORTED], [__attribute__((visibility("default")))], [Default visibility]) +-AM_CFLAGS="-std=gnu99 $inline_cflags -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow" ++AM_CFLAGS="-std=gnu99 $inline_cflags -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wshadow" + AC_SUBST(AM_CFLAGS) + + AC_CONFIG_FILES([libusb-1.0.pc] [Makefile] [libusb/Makefile] [examples/Makefile] [doc/Makefile] [doc/doxygen.cfg]) +--- libusb-1.0.0/libusb/Makefile.am-orig 2009-02-26 13:18:11.000000000 +0100 ++++ libusb-1.0.0/libusb/Makefile.am 2009-02-26 13:18:23.000000000 +0100 +@@ -8,7 +8,7 @@ + OS_SRC = $(LINUX_USBFS_SRC) + endif + +-libusb_1_0_la_CFLAGS = -fvisibility=hidden $(AM_CFLAGS) -pthread ++libusb_1_0_la_CFLAGS = $(AM_CFLAGS) -pthread + libusb_1_0_la_SOURCES = libusbi.h core.c descriptor.c io.c sync.c $(OS_SRC) + libusb_1_0_la_LIBADD = -lrt + |