Changeset 32068


Ignore:
Timestamp:
May 15, 2017, 9:49:22 PM (2 months ago)
Author:
brainslayer
Message:

for uclibc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/rules/anchorfree.mk

    r32003 r32068  
    2828
    2929
     30
     31ifneq ($(CONFIG_MUSL),y)
    3032HYDRA_OPTS:= \
    3133        CC="ccache $(ARCH)-linux-uclibc-gcc" \
    3234        LD="$(ARCH)-linux-uclibc-ld" \
    33         EXTRA_CFLAGS+="-ffunction-sections -fdata-sections -DOPENWRT -DDISABLE_VIPER_BSS_RESET $(COPTS) -DNEED_PRINTF -fno-strict-aliasing" \
     35        EXTRA_CFLAGS+="-ffunction-sections -fdata-sections -DOPENWRT -DDISABLE_VIPER_BSS_RESET $(COPTS) $(MIPS16_OPT) -DNEED_PRINTF -fno-strict-aliasing" \
     36        EXTRA_CFLAGS+="-I$(TOP)/jansson/src" \
     37        EXTRA_CFLAGS+="-I$(TOP)/libevent2-anchorfree/include" \
     38        EXTRA_CFLAGS+="-I$(TOP)/openssl/include" \
     39        EXTRA_CFLAGS+="-I$(TOP)/libevent2-anchorfree/compat" \
     40        EXTRA_CFLAGS+="-I$(TOP)/zlib/include" \
     41        EXTRA_LDFLAGS+="$(TOP)/libevent2-anchorfree/.libs/libevent.a" \
     42        EXTRA_LDFLAGS+="$(TOP)/libevent2-anchorfree/.libs/libevent_pthreads.a" \
     43        EXTRA_LDFLAGS+="$(TOP)/jansson/src/.libs/libjansson.a" \
     44        EXTRA_LDFLAGS+="-L$(TOP)/zlib -lz" \
     45        EXTRA_LDFLAGS+="-L$(TOP)/openssl -lssl -lcrypto -lpthread" \
     46        EXTRA_LDFLAGS+="-Wl,--gc-sections" \
     47        OPENWRT=yes \
     48        PLATFORM=openwrt
     49else
     50HYDRA_OPTS:= \
     51        CC="ccache $(ARCH)-linux-uclibc-gcc" \
     52        LD="$(ARCH)-linux-uclibc-ld" \
     53        EXTRA_CFLAGS+="-ffunction-sections -fdata-sections -DOPENWRT -DDISABLE_VIPER_BSS_RESET $(COPTS) $(MIPS16_OPT) -DNEED_PRINTF -fno-strict-aliasing" \
    3454        EXTRA_CFLAGS+="-I$(TOP)/jansson/src" \
    3555        EXTRA_CFLAGS+="-I$(TOP)/libevent2-anchorfree/include" \
     
    4464        EXTRA_LDFLAGS+="-Wl,--gc-sections" \
    4565        OPENWRT=yes \
    46         PLATFORM=openwrt 
     66        PLATFORM=openwrt
    4767
     68endif
    4869
    4970hydra:
Note: See TracChangeset for help on using the changeset viewer.