Commit 9f67bb28 authored by Libretro-Admin's avatar Libretro-Admin
Browse files

Buildfixes

parent 044d6813
Pipeline #1056 failed with stages
in 1 minute and 56 seconds
......@@ -437,8 +437,8 @@ else ifneq (,$(findstring windows_msvc2017,$(platform)))
# Windows
else
TARGET := $(TARGET_NAME)_libretro.dll
CC = gcc
CXX = g++
CC ?= gcc
CXX ?= g++
SHARED := -shared -Wl,-no-undefined -Wl,--version-script=$(VERSION_SCRIPT)
LDFLAGS += -static-libgcc -static-libstdc++
ENDIANNESS_DEFINES := -DLSB_FIRST
......@@ -652,13 +652,11 @@ src/cpu/mips3/x64/mips3_x64.o: src/cpu/mips3/x64/mips3_x64.cpp
$(CC) $(CFLAGS) $(INCFLAGS) -c $< -o $@
$(TARGET): $(OBJS)
@echo "** BUILDING $(TARGET) FOR PLATFORM $(platform) **"
ifeq ($(STATIC_LINKING), 1)
$(AR) rcs $@ $(OBJS)
else
$(LD) $(LINKOUT)$@ $(SHARED) $^ $(LDFLAGS) $(LIBS)
endif
@echo "** BUILD SUCCESSFUL! **"
clean-objs:
rm -f $(OBJS)
......
......@@ -45,10 +45,10 @@
#include "zlib.h"
#ifdef __LIBRETRO__
#include "streams/file_stream_transforms.h"
#ifndef USE_FILE32API
#define USE_FILE32API
#endif
#include <streams/file_stream_transforms.h>
#ifndef USE_FILE32API
#define USE_FILE32API
#endif
#endif
#if defined(USE_FILE32API)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment