Skip to content

Commit

Permalink
CC, AR, LD, RANLIB, STRIP to have defaults only if not set. This is n…
Browse files Browse the repository at this point in the history
…eeded when compiling clib2 through ADTOOLS
  • Loading branch information
3246251196 committed Sep 3, 2023
1 parent 28aa4ee commit c1f278b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions GNUmakefile.os4
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ UNAME := $(shell uname)
INSTALL_PREFIX ?= /usr/ppc-amigaos/SDK/clib2
SDK_INCLUDE ?= /usr/ppc-amigaos/SDK/include

CC := ppc-amigaos-gcc
AR := ppc-amigaos-ar -q
LD := ppc-amigaos-ld
RANLIB := ppc-amigaos-ranlib
CC ?= ppc-amigaos-gcc
AR ?= ppc-amigaos-ar -q
LD ?= ppc-amigaos-ld
RANLIB ?= ppc-amigaos-ranlib
STRIP ?= ppc-amigaos-strip

# On AmigaOS use native commands
ifeq ($(UNAME), AmigaOS)
Expand Down Expand Up @@ -202,7 +203,7 @@ clib2.library.debug: $(OBJ_C_LIB)

clib2.library: clib2.library.debug
cp $(BUILD_DIR)/$< $(BUILD_DIR)/$@
ppc-amigaos-strip -R.comment -R.sdata2 --strip-unneeded-rel-relocs $(BUILD_DIR)/$@
$(STRIP) -R.comment -R.sdata2 --strip-unneeded-rel-relocs $(BUILD_DIR)/$@

##############################################################################

Expand Down

0 comments on commit c1f278b

Please sign in to comment.