aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f5891c4..e51d126 100644
--- a/Makefile
+++ b/Makefile
@@ -47,7 +47,13 @@ ifneq ($(GIT_VERSION)," unknown")
endif
DEFS :=
+ifneq (,$(findstring msvc,$(platform)))
+LIBM :=
+else
LIBM := -lm
+endif
+LDFLAGS :=
+LIBS :=
ifeq ($(platform), unix)
TARGET := $(TARGET_NAME)_libretro.so
@@ -350,7 +356,7 @@ $(TARGET): $(OBJECTS)
ifeq ($(STATIC_LINKING), 1)
$(AR) rcs $@ $(OBJECTS)
else
- $(CC) $(LINKOUT)$@ $(OBJECTS) $(LDFLAGS)
+ $(CC) $(LINKOUT)$@ $(OBJECTS) $(LDFLAGS) $(LIBS)
endif
clean: