summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rw-r--r--lcmodule/Makefile4
2 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index d31b510..8585831 100644
--- a/Makefile
+++ b/Makefile
@@ -121,16 +121,16 @@ CXXFLAGS := -D__WIN32__ -O2 -mwindows -mthreads -fno-strict-aliasing -Wall $(BYT
endif
ifeq ($(BUILD_WIN),)
-LDFLAGS := -fPIC -fvisibility=hidden -shared -Wl -o liblcdriver.$(LIB_EXTENSION)
+LDFLAGS := -fPIC -fvisibility=hidden -shared -o liblcdriver.$(LIB_EXTENSION)
LIBS := -lpthread -ldl
else
# Win x32 linker flags
ifeq ($(BUILD_WIN),1)
-LDFLAGS := -D__WIN32__ -s -mwindows -mthreads -mdll -Wl -o LCDriver_CNH1606432.dll
+LDFLAGS := -D__WIN32__ -s -mwindows -mthreads -mdll -o LCDriver_CNH1606432.dll
endif
# Win x64 linker flags
ifeq ($(BUILD_WIN),2)
-LDFLAGS := -D__WIN32__ -s -mwindows -mthreads -mdll -Wl -o LCDriver_CNH1606432_x64.dll
+LDFLAGS := -D__WIN32__ -s -mwindows -mthreads -mdll -o LCDriver_CNH1606432_x64.dll
endif
endif
diff --git a/lcmodule/Makefile b/lcmodule/Makefile
index bbd5333..7c2675d 100644
--- a/lcmodule/Makefile
+++ b/lcmodule/Makefile
@@ -171,10 +171,10 @@ endif
$(LIB_x32): $(LIBOBJ_x32)
- $(CC) -shared -m32 -Wl -o $(LIB_x32) $(LINKOPTS) $(addprefix $(BUILDFOLDER)/$(LIB_x32_OBJ_DIR)/, $(^F))
+ $(CC) -shared -m32 -o $(LIB_x32) $(LINKOPTS) $(addprefix $(BUILDFOLDER)/$(LIB_x32_OBJ_DIR)/, $(^F))
$(LIB_x64): $(LIBOBJ_x64)
- $(CC) -shared -Wl -o $(LIB_x64) $(LINKOPTS) $(addprefix $(BUILDFOLDER)/$(LIB_x64_OBJ_DIR)/, $(^F))
+ $(CC) -shared -o $(LIB_x64) $(LINKOPTS) $(addprefix $(BUILDFOLDER)/$(LIB_x64_OBJ_DIR)/, $(^F))
#
# Source files build x32