Changeset 12225


Ignore:
Timestamp:
2008-08-07T00:10:29+02:00 (10 years ago)
Author:
nbd
Message:

use $(FPIC) in a few places where it matters

Location:
trunk/package
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/gmp/Makefile

    r11555 r12225  
    3131endef 
    3232 
     33TARGET_CFLAGS += $(FPIC) 
    3334CONFIGURE_VARS += CC="$(TARGET_CROSS)gcc" 
    3435CONFIGURE_ARGS += \ 
  • trunk/package/ipkg/Makefile

    r12137 r12225  
    3939endef 
    4040 
     41TARGET_CFLAGS += $(FPIC) 
    4142CONFIGURE_ARGS += $(DISABLE_LARGEFILE) 
    4243 
  • trunk/package/iptables/Makefile

    r12089 r12225  
    217217                clean 
    218218endef 
     219 
     220TARGET_CFLAGS += $(FPIC) 
    219221 
    220222define Build/Compile 
  • trunk/package/libnl/Makefile

    r11600 r12225  
    3030endef 
    3131 
    32 TARGET_CFLAGS += -ffunction-sections 
     32TARGET_CFLAGS += -ffunction-sections $(FPIC) 
    3333 
    3434define Build/Compile 
  • trunk/package/libpcap/Makefile

    r11742 r12225  
    3131endef 
    3232 
     33TARGET_CFLAGS += $(FPIC) 
     34 
    3335CONFIGURE_ARGS += \ 
    3436        --enable-shared \ 
  • trunk/package/lua/Makefile

    r12008 r12225  
    2424 
    2525include $(INCLUDE_DIR)/package.mk 
    26  
    27 ifeq ($(ARCH),powerpc) 
    28   FPIC:=-fPIC 
    29 endif 
    30 ifeq ($(ARCH),x86_64) 
    31   FPIC:=-fPIC 
    32 endif 
    33  
    3426 
    3527define Package/lua/Default 
     
    9688endef 
    9789 
    98 TARGET_CFLAGS += -DLUA_USE_LINUX 
     90TARGET_CFLAGS += -DLUA_USE_LINUX $(FPIC) 
    9991 
    10092define Build/Compile 
     
    10597                RANLIB="$(TARGET_CROSS)ranlib" \ 
    10698                INSTALL_ROOT=/usr \ 
    107                 CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(FPIC)" \ 
     99                CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \ 
    108100                MYLDFLAGS="$(TARGET_LDFLAGS)" \ 
    109101                PKG_VERSION=$(PKG_VERSION) \ 
  • trunk/package/ncurses/Makefile

    r9906 r12225  
    2828define Build/Configure 
    2929endef 
     30 
     31TARGET_CFLAGS += $(FPIC) 
    3032 
    3133define Build/Compile 
  • trunk/package/nvram/Makefile

    r10749 r12225  
    3030endef 
    3131 
     32TARGET_CFLAGS += $(FPIC) 
     33 
    3234define Build/InstallDev 
    3335        mkdir -p $(1)/usr/lib 
  • trunk/package/openssl/Makefile

    r11805 r12225  
    9090endef 
    9191 
     92TARGET_CFLAGS += $(FPIC) 
     93 
    9294define Build/Compile 
    9395        rm -rf $(PKG_INSTALL_DIR) 
  • trunk/package/opkg/Makefile

    r12115 r12225  
    3737endef 
    3838 
     39TARGET_CFLAGS += $(FPIC) 
    3940EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/lib 
    4041EXTRA_LDFLAGS+=-L$(STAGING_DIR)/usr/lib -Wl,-rpath-link,$(STAGING_DIR)/usr/lib 
  • trunk/package/uci/Makefile

    r12045 r12225  
    4848endef 
    4949 
     50TARGET_CFLAGS += $(FPIC) 
    5051UCI_MAKEOPTS = \ 
    5152                $(TARGET_CONFIGURE_OPTS) \ 
  • trunk/package/zlib/Makefile

    r9906 r12225  
    3030                $(TARGET_CONFIGURE_OPTS) \ 
    3131                LDSHARED="$(TARGET_CC) -shared -Wl,-soname,libz.so.1" \ 
    32                 CFLAGS="$(TARGET_CFLAGS) -fPIC $(CFLAGS_LARGEFILE)" \ 
     32                CFLAGS="$(TARGET_CFLAGS) $(FPIC) $(CFLAGS_LARGEFILE)" \ 
    3333                UNAME_S="Linux" \ 
    3434                ./configure \ 
Note: See TracChangeset for help on using the changeset viewer.