Skip to content

Commit 4b3ef78

Browse files
committed
TGTLIBTOOL wasn't always defined
1 parent 061237e commit 4b3ef78

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

makefile.shared

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,22 @@ PLATFORM := $(shell uname | sed -e 's/_.*//')
1818

1919
ifeq ($(LIBTOOL),rlibtool)
2020
TGTLIBTOOL:=slibtool-shared
21-
endif
22-
23-
ifndef LIBTOOL
24-
ifeq ($(PLATFORM), Darwin)
25-
LIBTOOL:=glibtool
21+
else
22+
ifndef LIBTOOL
23+
ifeq ($(PLATFORM), Darwin)
24+
TGTLIBTOOL:=glibtool
25+
else
26+
TGTLIBTOOL:=libtool
27+
endif
2628
else
27-
LIBTOOL:=libtool
29+
TGTLIBTOOL=$(LIBTOOL)
2830
endif
29-
TGTLIBTOOL=$(LIBTOOL)
3031
endif
32+
3133
ifeq ($(PLATFORM), CYGWIN)
3234
NO_UNDEFINED:=-no-undefined
3335
endif
36+
3437
LTCOMPILE = $(TGTLIBTOOL) --mode=compile --tag=CC $(CC)
3538
INSTALL_CMD = $(TGTLIBTOOL) --mode=install install
3639
UNINSTALL_CMD = $(TGTLIBTOOL) --mode=uninstall rm

0 commit comments

Comments
 (0)