mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-12-01 19:07:07 +00:00
First try AR, then try LIBTOOL...
This commit is contained in:
parent
1fed499560
commit
06430b007b
11
Makefile
11
Makefile
@ -105,7 +105,11 @@ lib:
|
|||||||
mkdir lib
|
mkdir lib
|
||||||
|
|
||||||
lib/$(LIB.STATIC): $(LIB.OBJS)
|
lib/$(LIB.STATIC): $(LIB.OBJS)
|
||||||
|
ifneq ($(AR),)
|
||||||
$(AR) $(ARFLAGS) $@ $^
|
$(AR) $(ARFLAGS) $@ $^
|
||||||
|
else ifneq ($(LIBTOOL),)
|
||||||
|
$(LIBTOOL) $@ $^
|
||||||
|
endif
|
||||||
ifneq ($(STRIP),)
|
ifneq ($(STRIP),)
|
||||||
$(STRIP) -x $@
|
$(STRIP) -x $@
|
||||||
endif
|
endif
|
||||||
@ -149,7 +153,14 @@ glew.pc: glew.pc.in
|
|||||||
glew.lib.mx: lib lib/$(LIB.SHARED.MX) lib/$(LIB.STATIC.MX) glewmx.pc
|
glew.lib.mx: lib lib/$(LIB.SHARED.MX) lib/$(LIB.STATIC.MX) glewmx.pc
|
||||||
|
|
||||||
lib/$(LIB.STATIC.MX): $(LIB.OBJS.MX)
|
lib/$(LIB.STATIC.MX): $(LIB.OBJS.MX)
|
||||||
|
ifneq ($(AR),)
|
||||||
$(AR) $(ARFLAGS) $@ $^
|
$(AR) $(ARFLAGS) $@ $^
|
||||||
|
else ifneq ($(LIBTOOL),)
|
||||||
|
$(LIBTOOL) $@ $^
|
||||||
|
endif
|
||||||
|
ifneq ($(STRIP),)
|
||||||
|
$(STRIP) -x $@
|
||||||
|
endif
|
||||||
|
|
||||||
lib/$(LIB.SHARED.MX): $(LIB.SOBJS.MX)
|
lib/$(LIB.SHARED.MX): $(LIB.SOBJS.MX)
|
||||||
$(LD) $(LDFLAGS.SO.MX) -o $@ $^ $(LIB.LDFLAGS) $(LIB.LIBS)
|
$(LD) $(LDFLAGS.SO.MX) -o $@ $^ $(LIB.LDFLAGS) $(LIB.LIBS)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
NAME = $(GLEW_NAME)
|
NAME = $(GLEW_NAME)
|
||||||
CC = cc
|
CC = cc
|
||||||
LD = cc
|
LD = cc
|
||||||
AR = LIBTOOL
|
AR =
|
||||||
ARFLAGS = -static -o
|
LIBTOOL = libtool -static -o
|
||||||
STRIP =
|
STRIP =
|
||||||
CFLAGS.EXTRA = -dynamic -fno-common
|
CFLAGS.EXTRA = -dynamic -fno-common
|
||||||
#CFLAGS.EXTRA += -no-cpp-precomp
|
#CFLAGS.EXTRA += -no-cpp-precomp
|
||||||
|
Loading…
Reference in New Issue
Block a user