Skip to content

Commit

Permalink
msvc buildfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Parker committed Aug 5, 2017
1 parent cb98f5d commit 23e7f0d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile.libretro
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ include $(THEOS_MAKE_PATH)/library.mk
else
all: $(TARGET)

OBJOUT = -o
OBJOUT = -o
LINKOUT = -o

ifneq (,$(findstring msvc,$(platform)))
Expand All @@ -410,14 +410,14 @@ $(TARGET): $(OBJECTS)
ifeq ($(STATIC_LINKING), 1)
$(AR) rcs $@ $(OBJECTS)
else
$(CXX) $(LINKOUT)$@ $(SHARED) $(OBJECTS) $(LDFLAGS) $(LIBS)
$(LD) $(LINKOUT)$@ $(SHARED) $(OBJECTS) $(LDFLAGS) $(LIBS)
endif

%.o: %.cpp
$(CXX) -c $(OBJOUT) $@ $< $(CXXFLAGS) $(INCFLAGS)
$(CXX) -c $(OBJOUT)$@ $< $(CXXFLAGS) $(INCFLAGS)

%.o: %.c
$(CC) -c $(OBJOUT) $@ $< $(CFLAGS) $(INCFLAGS)
$(CC) -c $(OBJOUT)$@ $< $(CFLAGS) $(INCFLAGS)


clean-objs:
Expand Down

1 comment on commit 23e7f0d

@rz5
Copy link

@rz5 rz5 commented on 23e7f0d Aug 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For those in the future looking back at this, this is a fix because, and I quote:

gcc wants -o file, msvc wants -Fofile

Please sign in to comment.