Skip to content

Commit

Permalink
make: no line splitting
Browse files Browse the repository at this point in the history
won't work on libretro-build-libnx-devkitpro , who tf knows why?
  • Loading branch information
notaz committed Dec 16, 2024
1 parent 574eb7d commit a7a6db3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -475,12 +475,8 @@ target_: $(TARGET)

$(TARGET): $(OBJS)
ifeq ($(PARTIAL_LINKING), 1)
$(LD) -o $(basename $(TARGET))1.o -r --gc-sections \
$(addprefix -u ,$(shell cat frontend/libretro-extern)) \
$(addprefix -u ,$(EXTRA_EXTERN_SYMS)) $^
$(OBJCOPY) --keep-global-symbols=frontend/libretro-extern \
$(addprefix -G ,$(EXTRA_EXTERN_SYMS)) \
$(basename $(TARGET))1.o $(basename $(TARGET)).o
$(LD) -o $(basename $(TARGET))1.o -r --gc-sections $(addprefix -u ,$(shell cat frontend/libretro-extern)) $(addprefix -u ,$(EXTRA_EXTERN_SYMS)) $^
$(OBJCOPY) --keep-global-symbols=frontend/libretro-extern $(addprefix -G ,$(EXTRA_EXTERN_SYMS)) $(basename $(TARGET))1.o $(basename $(TARGET)).o
$(AR) rcs $@ $(basename $(TARGET)).o
else ifeq ($(STATIC_LINKING), 1)
$(AR) rcs $@ $^
Expand Down

0 comments on commit a7a6db3

Please sign in to comment.