summaryrefslogtreecommitdiff
path: root/recipes/libusb/libusb1-1.0.0/gcc-3-compatibility.patch
blob: d1bc6803d8d9c1072d15eea7cc071d843330e157 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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