From: rofu Date: Wed, 11 Apr 2012 18:38:27 +0000 (+0000) Subject: Fix the type "-W1" to the correct option "-Wl" X-Git-Tag: v190~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8ed224941973815caef8cee96bbaab9bb93f5ea;p=liblinear Fix the type "-W1" to the correct option "-Wl" --- diff --git a/Makefile b/Makefile index 3526df7..7a74e26 100644 --- a/Makefile +++ b/Makefile @@ -10,9 +10,9 @@ all: train predict lib: linear.o tron.o blas/blas.a if [ "$(OS)" = "Darwin" ]; then \ - SHARED_LIB_FLAG="-dynamiclib -W1,-install_name,liblinear.so.$(SHVER)"; \ + SHARED_LIB_FLAG="-dynamiclib -Wl,-install_name,liblinear.so.$(SHVER)"; \ else \ - SHARED_LIB_FLAG="-shared -W1,-soname,liblinear.so.$(SHVER)"; \ + SHARED_LIB_FLAG="-shared -Wl,-soname,liblinear.so.$(SHVER)"; \ fi; \ $(CXX) $${SHARED_LIB_FLAG} linear.o tron.o blas/blas.a -o liblinear.so.$(SHVER)