From 76497f943b463114bcd6f2fae48ba183a879ee1b Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Mon, 30 Jul 2012 15:40:18 +0000 Subject: [PATCH] [package] libevent: move headers and libs to a specific sub-folder And update nfs-kernel-server to use these new headers location SVN-Revision: 32918 --- libs/libevent/Makefile | 8 ++++---- net/nfs-kernel-server/Makefile | 6 ++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/libs/libevent/Makefile b/libs/libevent/Makefile index c00a0b15fb..781b87cd84 100644 --- a/libs/libevent/Makefile +++ b/libs/libevent/Makefile @@ -52,10 +52,10 @@ MAKE_FLAGS += \ CFLAGS="$(TARGET_CFLAGS)" \ define Build/InstallDev - $(INSTALL_DIR) $(1)/usr/include - $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ - $(INSTALL_DIR) $(1)/usr/lib - $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{a,so} $(1)/usr/lib/ + $(INSTALL_DIR) $(1)/usr/include/libevent + $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/libevent/ + $(INSTALL_DIR) $(1)/usr/lib/libevent + $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{a,so} $(1)/usr/lib/libevent/ endef define Package/libevent/install diff --git a/net/nfs-kernel-server/Makefile b/net/nfs-kernel-server/Makefile index c98a204f1c..aca76f61b2 100644 --- a/net/nfs-kernel-server/Makefile +++ b/net/nfs-kernel-server/Makefile @@ -67,8 +67,10 @@ define Package/nfs-utils/description Updated mount.nfs command - allows mounting nfs4 volumes endef -TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib -I$(STAGING_DIR)/usr/include -Drpc_uint=uint -TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib $(LIBRPC) +TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib -I$(STAGING_DIR)/usr/include/libevent \ + -I$(STAGING_DIR)/usr/include/ -Drpc_uint=uint +TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib $(LIBRPC) \ + -L$(STAGING_DIR)/usr/lib/libevent CONFIGURE_ARGS += \ --disable-gss \ -- 2.30.2