64 bit quicknes. Change both quicknes and wswan to not static their deps, and include libstdc++/etc as needed. Other cores will get the same treatment, so overall we should save space

This commit is contained in:
nattthebear 2016-02-28 21:30:47 -05:00
parent 131f4bb84b
commit bb81d5e78b
7 changed files with 26 additions and 6 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,12 +1,29 @@
CXX = g++
CXXFLAGS = -Wall -DDISABLE_AUTO_FILE -D__LIBRETRO__ -DNDEBUG -I.. -O3 -Wno-multichar -fno-exceptions -fomit-frame-pointer -march=pentium4 -mtune=core2 -flto
RM = rm
CP = cp
MACHINE = $(shell $(CXX) -dumpmachine)
ifneq (,$(findstring i686,$(MACHINE)))
ARCH = 32
else ifneq (,$(findstring x86_64,$(MACHINE)))
ARCH = 64
else
$(error Unknown arch)
endif
CXXFLAGS_32 = -march=pentium4 -mtune=core2
CXXFLAGS_64 =
CXXFLAGS = -Wall -DDISABLE_AUTO_FILE -D__LIBRETRO__ -DNDEBUG -I.. -O3 -Wno-multichar -fno-exceptions -fomit-frame-pointer -flto $(CXXFLAGS_$(ARCH))
# TODO: include these as options in the Makefile
# -fprofile-generate
# -fprofile-use
TARGET = libquicknes.dll
LDFLAGS = -shared -static -static-libgcc -static-libstdc++ $(CXXFLAGS)
RM = rm
CP = cp
LDFLAGS_32 = -static -static-libgcc -static-libstdc++
LDFLAGS_64 =
LDFLAGS = -shared $(LDFLAGS_$(ARCH)) $(CXXFLAGS)
DEST_32 = ../../output/dll
DEST_64 = ../../output64/dll
SRCS = \
../nes_emu/abstract_file.cpp \
@ -62,4 +79,4 @@ clean:
$(RM) $(TARGET)
install:
$(CP) $(TARGET) ../../output/dll
$(CP) $(TARGET) $(DEST_$(ARCH))

View File

@ -13,7 +13,10 @@ endif
CXXFLAGS = -Wall -DLSB_FIRST -I.. -Wno-multichar -O3 -Wzero-as-null-pointer-constant -std=gnu++11 -fomit-frame-pointer -fno-exceptions -flto
TARGET = bizswan.dll
LDFLAGS = -shared -static-libgcc -static-libstdc++ -static $(CXXFLAGS)
LDFLAGS_32 = -static -static-libgcc -static-libstdc++
LDFLAGS_64 =
LDFLAGS = -shared $(LDFLAGS_$(ARCH)) $(CXXFLAGS)
DEST_32 = ../../output/dll
DEST_64 = ../../output64/dll