signed integers, rational numbers, and floating point numbers.
endef
+TARGET_CFLAGS += $(FPIC)
CONFIGURE_VARS += CC="$(TARGET_CROSS)gcc"
CONFIGURE_ARGS += \
--enable-shared \
ipkg knows how to install both .ipk and .deb packages.
endef
+TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += $(DISABLE_LARGEFILE)
define Build/Compile
clean
endef
+TARGET_CFLAGS += $(FPIC)
+
define Build/Compile
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
This package contains a library for applications dealing with netlink sockets
endef
-TARGET_CFLAGS += -ffunction-sections
+TARGET_CFLAGS += -ffunction-sections $(FPIC)
define Build/Compile
$(call Build/Compile/Default)
packet capture.
endef
+TARGET_CFLAGS += $(FPIC)
+
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
include $(INCLUDE_DIR)/package.mk
-ifeq ($(ARCH),powerpc)
- FPIC:=-fPIC
-endif
-ifeq ($(ARCH),x86_64)
- FPIC:=-fPIC
-endif
-
-
define Package/lua/Default
SUBMENU:=LUA
SECTION:=lang
define Build/Configure
endef
-TARGET_CFLAGS += -DLUA_USE_LINUX
+TARGET_CFLAGS += -DLUA_USE_LINUX $(FPIC)
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
AR="$(TARGET_CROSS)ar rcu" \
RANLIB="$(TARGET_CROSS)ranlib" \
INSTALL_ROOT=/usr \
- CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(FPIC)" \
+ CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
MYLDFLAGS="$(TARGET_LDFLAGS)" \
PKG_VERSION=$(PKG_VERSION) \
all linux
define Build/Configure
endef
+TARGET_CFLAGS += $(FPIC)
+
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)
endef
+TARGET_CFLAGS += $(FPIC)
+
define Build/InstallDev
mkdir -p $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libnvram*.so $(1)/usr/lib/
)
endef
+TARGET_CFLAGS += $(FPIC)
+
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
opkg knows how to install both .ipk and .deb packages.
endef
+TARGET_CFLAGS += $(FPIC)
EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/lib
EXTRA_LDFLAGS+=-L$(STAGING_DIR)/usr/lib -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
define Build/Configure
endef
+TARGET_CFLAGS += $(FPIC)
UCI_MAKEOPTS = \
$(TARGET_CONFIGURE_OPTS) \
COPTS="$(TARGET_CFLAGS)" \
(cd $(PKG_BUILD_DIR); \
$(TARGET_CONFIGURE_OPTS) \
LDSHARED="$(TARGET_CC) -shared -Wl,-soname,libz.so.1" \
- CFLAGS="$(TARGET_CFLAGS) -fPIC $(CFLAGS_LARGEFILE)" \
+ CFLAGS="$(TARGET_CFLAGS) $(FPIC) $(CFLAGS_LARGEFILE)" \
UNAME_S="Linux" \
./configure \
--prefix=/usr \