]> granicus.if.org Git - liblinear/commitdiff
Fix the type "-W1" to the correct option "-Wl"
authorrofu <rofu@16e7d947-dcc2-db11-b54a-0017319806e7>
Wed, 11 Apr 2012 18:38:27 +0000 (18:38 +0000)
committerrofu <rofu@16e7d947-dcc2-db11-b54a-0017319806e7>
Wed, 11 Apr 2012 18:38:27 +0000 (18:38 +0000)
Makefile

index 3526df72ca7b45fd21b235a640463424a022842c..7a74e26af9a377205258e49a256e9aebbe970908 100644 (file)
--- 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)