[packages] apcupsd: Move local include path before all other includes paths.
Otherwise it will include the wrong md5.h and the build will fail. Fixes #5449 git-svn-id: svn://svn.openwrt.org/openwrt/packages@19784 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
d1d930e930
commit
0678e6f9a1
@ -31,6 +31,7 @@ define Build/Configure
|
||||
--with-distname=unknown \
|
||||
--sysconfdir=/etc/apcupsd \
|
||||
--enable-usb \
|
||||
--without-x \
|
||||
)
|
||||
endef
|
||||
|
||||
|
13
net/apcupsd/patches/010-fix-include-paths.patch
Normal file
13
net/apcupsd/patches/010-fix-include-paths.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/autoconf/variables.mak.in b/autoconf/variables.mak.in
|
||||
index b67e467..6022434 100644
|
||||
--- a/autoconf/variables.mak.in
|
||||
+++ b/autoconf/variables.mak.in
|
||||
@@ -65,7 +65,7 @@ DRVLIBS = @PTHREAD_LFLAGS@ @DRVLIBS@
|
||||
X_LIBS = @X_LIBS@
|
||||
X_EXTRA_LIBS = @X_EXTRA_LIBS@
|
||||
|
||||
-CPPFLAGS = @CPPFLAGS@ -I$(topdir)/include $(EXTRAINCS)
|
||||
+CPPFLAGS = -I$(topdir)/include @CPPFLAGS@ $(EXTRAINCS)
|
||||
CFLAGS = $(CPPFLAGS) @CFLAGS@ @PTHREAD_CFLAGS@
|
||||
CXXFLAGS = $(CPPFLAGS) @CXXFLAGS@ @PTHREAD_CFLAGS@
|
||||
LDFLAGS = @LDFLAGS@
|
Loading…
x
Reference in New Issue
Block a user