baresip: drop 002-fix-rem-include.patch
Setting LIBREM_PATH allows dropping the patch. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
parent
1e49a312fa
commit
8e687b90b7
2 changed files with 1 additions and 68 deletions
|
@ -127,6 +127,7 @@ MAKE_FLAGS+= \
|
|||
LIBRE_MK="$(STAGING_DIR)/usr/share/re/re.mk" \
|
||||
LIBRE_INC="$(STAGING_DIR)/usr/include/re" \
|
||||
LIBRE_SO="$(STAGING_DIR)/usr/lib" \
|
||||
LIBREM_PATH="$(STAGING_DIR)/usr" \
|
||||
OS=linux \
|
||||
RELEASE=1 \
|
||||
SYSROOT="$(shell $(FIND) $(TOOLCHAIN_DIR) -path '*/include/pthread.h' | sed -ne '1s|/include/pthread.h||p')" \
|
||||
|
|
|
@ -1,68 +0,0 @@
|
|||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -45,63 +45,11 @@ SYSROOT_LOCAL := $(shell [ -d /usr/local
|
||||
endif
|
||||
endif
|
||||
|
||||
-ifndef LIBREM_PATH
|
||||
-LIBREM_PATH := $(shell [ -d ../rem ] && echo "../rem")
|
||||
-endif
|
||||
-
|
||||
-ifeq ($(LIBREM_PATH),)
|
||||
-ifneq ($(SYSROOT_LOCAL),)
|
||||
-LIBREM_PATH := $(shell [ -f $(SYSROOT_LOCAL)/include/rem/rem.h ] && \
|
||||
- echo "$(SYSROOT_LOCAL)")
|
||||
-endif
|
||||
-endif
|
||||
-
|
||||
-ifeq ($(LIBREM_PATH),)
|
||||
-LIBREM_PATH := $(shell [ -f $(SYSROOT)/include/rem/rem.h ] && \
|
||||
- echo "$(SYSROOT)")
|
||||
-endif
|
||||
-
|
||||
# Include path
|
||||
-LIBREM_INC := $(shell [ -f $(LIBREM_PATH)/include/rem.h ] && \
|
||||
- echo "$(LIBREM_PATH)/include")
|
||||
-ifeq ($(LIBREM_INC),)
|
||||
-LIBREM_INC := $(shell [ -f $(LIBREM_PATH)/include/rem/rem.h ] && \
|
||||
- echo "$(LIBREM_PATH)/include/rem")
|
||||
-endif
|
||||
-ifeq ($(LIBREM_INC),)
|
||||
-LIBREM_INC := $(shell [ -f /usr/local/include/rem/rem.h ] && \
|
||||
- echo "/usr/local/include/rem")
|
||||
-endif
|
||||
-ifeq ($(LIBREM_INC),)
|
||||
-LIBREM_INC := $(shell [ -f /usr/include/rem/rem.h ] && echo "/usr/include/rem")
|
||||
-endif
|
||||
+LIBREM_INC := $(SYSROOT_ALT)/include/rem
|
||||
|
||||
# Library path
|
||||
-ifeq ($(LIBREM_SO),)
|
||||
-LIBREM_SO := $(shell [ -f $(LIBREM_PATH)/librem.a ] && \
|
||||
- echo "$(LIBREM_PATH)")
|
||||
-endif
|
||||
-ifeq ($(LIBREM_SO),)
|
||||
-LIBREM_SO :=$(shell [ -f $(LIBREM_PATH)/librem$(LIB_SUFFIX) ] && \
|
||||
- echo "$(LIBREM_PATH)")
|
||||
-endif
|
||||
-ifeq ($(LIBREM_SO),)
|
||||
-LIBREM_SO := $(shell [ -f $(LIBREM_PATH)/lib/librem$(LIB_SUFFIX) ] && \
|
||||
- echo "$(LIBREM_PATH)/lib")
|
||||
-endif
|
||||
-ifeq ($(LIBREM_SO),)
|
||||
-LIBREM_SO := $(shell [ -f /usr/local/lib/librem$(LIB_SUFFIX) ] \
|
||||
- && echo "/usr/local/lib")
|
||||
-endif
|
||||
-ifeq ($(LIBREM_SO),)
|
||||
-LIBREM_SO := $(shell [ -f /usr/lib/librem$(LIB_SUFFIX) ] && \
|
||||
- echo "/usr/lib")
|
||||
-endif
|
||||
-ifeq ($(LIBREM_SO),)
|
||||
-LIBREM_SO := $(shell [ -f /usr/lib64/librem$(LIB_SUFFIX) ] && \
|
||||
- echo "/usr/lib64")
|
||||
-endif
|
||||
-
|
||||
+LIBREM_SO := $(SYSROOT_ALT)/include/rem
|
||||
|
||||
CFLAGS += -I. -Iinclude -I$(LIBRE_INC)
|
||||
CFLAGS += -I$(LIBREM_INC)
|
Loading…
Reference in a new issue