<empty commit message>

This commit is contained in:
zribiahmed 2013-02-08 11:13:28 +00:00
parent 1e60c17e6b
commit 971df94748
2 changed files with 9 additions and 2 deletions

View file

@ -20,6 +20,8 @@ PKG_CONFIG_DEPENDS:= \
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
CWMP_REVISION:=$(shell svnversion $(PWD) -n|cut -f2 -d:)
include $(INCLUDE_DIR)/package.mk
define Package/cwmp/Default
@ -60,6 +62,13 @@ endif
TARGET_CFLAGS += \
-D_GNU_SOURCE
ifneq ($(CWMP_REVISION)_,_)
ifneq ($(CWMP_REVISION),exported)
TARGET_CFLAGS += -DCWMP_REVISION=\"$(CWMP_REVISION)\"
TARGET_LDFLAGS += -DCWMP_REVISION=\"$(CWMP_REVISION)\"
endif
endif
TARGET_LDFLAGS += \
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib

View file

@ -45,8 +45,6 @@ cwmpd_LDADD = \
$(LIBZSTREAM_LIBS) \
$(LIBPTHREAD_LIBS)
CWMP_REVISION=$(shell svnversion $(PWD) -n|cut -f2 -d:)
cwmpd_CFLAGS+=-DCWMP_VERSION=\"$(CWMP_VERSION)\"
cwmpd_LDFLAGS+=-DCWMP_VERSION=\"$(CWMP_VERSION)\"