X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=mk%2Fexec-env%2Flinuxapp%2Frte.vars.mk;h=995c163728bec43afc76c14e78fe3146026bfc21;hb=e9d48c0072d36eb6423b45fba4ec49d0def6c36f;hp=2a1611d459097d4270b7277ac9b12ac435b3f927;hpb=6da94b7a92d9706c1a4fb23a9cf54f49e6019af2;p=dpdk.git diff --git a/mk/exec-env/linuxapp/rte.vars.mk b/mk/exec-env/linuxapp/rte.vars.mk index 2a1611d459..995c163728 100644 --- a/mk/exec-env/linuxapp/rte.vars.mk +++ b/mk/exec-env/linuxapp/rte.vars.mk @@ -1,6 +1,6 @@ # BSD LICENSE # -# Copyright(c) 2010-2013 Intel Corporation. All rights reserved. +# Copyright(c) 2010-2014 Intel Corporation. All rights reserved. # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -39,12 +39,20 @@ # # examples for RTE_EXEC_ENV: linuxapp, baremetal # - +ifeq ($(RTE_BUILD_SHARED_LIB),y) +EXECENV_CFLAGS = -pthread -fPIC +else EXECENV_CFLAGS = -pthread +endif + EXECENV_LDFLAGS = EXECENV_LDLIBS = -lrt -lm EXECENV_ASFLAGS = +ifeq ($(RTE_BUILD_SHARED_LIB),y) +EXECENV_LDLIBS += -lgcc_s +endif + # force applications to link with gcc/icc instead of using ld LINK_USING_CC := 1