Do not link to libm
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
This commit is contained in:
parent
24083619a7
commit
2c42b3613b
10
Makefile
10
Makefile
|
@ -16,7 +16,6 @@ endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
TARGET_NAME := mpv
|
TARGET_NAME := mpv
|
||||||
LIBM = -lm
|
|
||||||
|
|
||||||
ifeq ($(ARCHFLAGS),)
|
ifeq ($(ARCHFLAGS),)
|
||||||
ifeq ($(archs),ppc)
|
ifeq ($(archs),ppc)
|
||||||
|
@ -46,7 +45,6 @@ else ifeq ($(platform), linux-portable)
|
||||||
TARGET := $(TARGET_NAME)_libretro.$(EXT)
|
TARGET := $(TARGET_NAME)_libretro.$(EXT)
|
||||||
fpic := -fPIC -nostdlib
|
fpic := -fPIC -nostdlib
|
||||||
SHARED := -shared -Wl,--version-script=link.T
|
SHARED := -shared -Wl,--version-script=link.T
|
||||||
LIBM :=
|
|
||||||
else ifneq (,$(findstring osx,$(platform)))
|
else ifneq (,$(findstring osx,$(platform)))
|
||||||
TARGET := $(TARGET_NAME)_libretro.dylib
|
TARGET := $(TARGET_NAME)_libretro.dylib
|
||||||
fpic := -fPIC
|
fpic := -fPIC
|
||||||
|
@ -87,16 +85,15 @@ else
|
||||||
SHARED := -shared -static-libgcc -static-libstdc++ -s -Wl,--version-script=link.T -Wl,--no-undefined
|
SHARED := -shared -static-libgcc -static-libstdc++ -s -Wl,--version-script=link.T -Wl,--no-undefined
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LDFLAGS += $(LIBM) -lmpv
|
|
||||||
|
|
||||||
ifeq ($(DEBUG), 1)
|
ifeq ($(DEBUG), 1)
|
||||||
CFLAGS += -O0 -g
|
CFLAGS += -O0 -g
|
||||||
else
|
else
|
||||||
CFLAGS += -Ofast -s
|
CFLAGS += -Ofast -s
|
||||||
endif
|
endif
|
||||||
|
|
||||||
OBJECTS := mpv-libretro.o
|
OBJECTS := mpv-libretro.o
|
||||||
CFLAGS += -Wall -pedantic $(fpic)
|
LDFLAGS += -lmpv
|
||||||
|
CFLAGS += -Wall -pedantic $(fpic)
|
||||||
|
|
||||||
ifneq (,$(findstring qnx,$(platform)))
|
ifneq (,$(findstring qnx,$(platform)))
|
||||||
CFLAGS += -Wc,-std=c99
|
CFLAGS += -Wc,-std=c99
|
||||||
|
@ -120,4 +117,3 @@ clean:
|
||||||
rm -f $(OBJECTS) $(TARGET)
|
rm -f $(OBJECTS) $(TARGET)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue