l7-protocols: pass our CFLAGS and CXXFLAGS
All the testing utilities were not using our CFLAGS or CXXFLAGS fix that. Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/packages@39867 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
1a9a16e379
commit
fc2620d483
@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=l7-protocols
|
PKG_NAME:=l7-protocols
|
||||||
PKG_VERSION:=2009-05-28
|
PKG_VERSION:=2009-05-28
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=@SF/l7-filter
|
PKG_SOURCE_URL:=@SF/l7-filter
|
||||||
@ -42,7 +42,7 @@ endef
|
|||||||
|
|
||||||
ifneq ($(SDK)$(CONFIG_PACKAGE_l7-protocols-testing),)
|
ifneq ($(SDK)$(CONFIG_PACKAGE_l7-protocols-testing),)
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
cd $(PKG_BUILD_DIR)/testing && $(MAKE) $(TARGET_CONFIGURE_OPTS)
|
cd $(PKG_BUILD_DIR)/testing && $(MAKE) $(CONFIGURE_VARS)
|
||||||
endef
|
endef
|
||||||
else
|
else
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
|
@ -5,23 +5,23 @@
|
|||||||
|
|
||||||
randchars: randchars.c
|
randchars: randchars.c
|
||||||
- gcc -O2 -o randchars randchars.c
|
- gcc -O2 -o randchars randchars.c
|
||||||
+ $(CC) -O2 -o randchars randchars.c
|
+ $(CC) $(CFLAGS) -o randchars randchars.c
|
||||||
|
|
||||||
randprintable: randprintable.c
|
randprintable: randprintable.c
|
||||||
- gcc -O2 -o randprintable randprintable.c
|
- gcc -O2 -o randprintable randprintable.c
|
||||||
+ $(CC) -O2 -o randprintable randprintable.c
|
+ $(CC) $(CFLAGS) -o randprintable randprintable.c
|
||||||
|
|
||||||
test_speed-kernel: test_speed-kernel.c
|
test_speed-kernel: test_speed-kernel.c
|
||||||
- gcc -o test_speed-kernel test_speed-kernel.c
|
- gcc -o test_speed-kernel test_speed-kernel.c
|
||||||
+ $(CC) -o test_speed-kernel test_speed-kernel.c
|
+ $(CC) $(CFLAGS) -o test_speed-kernel test_speed-kernel.c
|
||||||
|
|
||||||
test_speed-userspace: test_speed-userspace.cpp l7-parse-patterns.cpp l7-parse-patterns.h
|
test_speed-userspace: test_speed-userspace.cpp l7-parse-patterns.cpp l7-parse-patterns.h
|
||||||
- g++ -Wall -o test_speed-userspace test_speed-userspace.cpp l7-parse-patterns.cpp
|
- g++ -Wall -o test_speed-userspace test_speed-userspace.cpp l7-parse-patterns.cpp
|
||||||
+ $(CXX) -Wall -o test_speed-userspace test_speed-userspace.cpp l7-parse-patterns.cpp
|
+ $(CXX) $(CXXFLAGS) -Wall -o test_speed-userspace test_speed-userspace.cpp l7-parse-patterns.cpp
|
||||||
|
|
||||||
match_kernel: match-kernel.c
|
match_kernel: match-kernel.c
|
||||||
- gcc -O2 -o match_kernel match-kernel.c
|
- gcc -O2 -o match_kernel match-kernel.c
|
||||||
+ $(CC) -O2 -o match_kernel match-kernel.c
|
+ $(CC) $(CFLAGS) -o match_kernel match-kernel.c
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f randprintable randchars test_speed-kernel test_speed-userspace match_kernel
|
rm -f randprintable randchars test_speed-kernel test_speed-userspace match_kernel
|
||||||
|
Loading…
x
Reference in New Issue
Block a user