Ver código fonte

only filter out -static for static-shared builds

Waldemar Brodkorb 6 anos atrás
pai
commit
3ff1cb3aac
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      toolchain/gcc/Makefile

+ 2 - 0
toolchain/gcc/Makefile

@@ -21,8 +21,10 @@ TARGET_CFLAGS:=		$(filter-out -msep-data,$(TARGET_CFLAGS))
 TARGET_CXXFLAGS:=	$(filter-out -msep-data,$(TARGET_CXXFLAGS))
 endif
 
+ifeq ($(ADK_TARGET_USE_STATIC_AND_SHARED_LIBS),y)
 TARGET_CFLAGS:=		$(filter-out -static,$(TARGET_CFLAGS))
 TARGET_CXXFLAGS:=	$(filter-out -static,$(TARGET_CXXFLAGS))
+endif
 
 GCC_CONFOPTS:=		--prefix=$(TOOLCHAIN_DIR)/usr \
 			--with-bugurl="http://www.openadk.org/" \