Supply --tag=CC to libtool to inform it we're a C library; in case it doesn't detect that (mumble openbsd mumble)

This commit is contained in:
Paul LeoNerd Evans 2009-11-25 14:36:44 +00:00
parent 7d5b64ff3d
commit ade9d760d3
1 changed files with 4 additions and 4 deletions

View File

@ -27,16 +27,16 @@ OBJECTS=termkey.lo driver-csi.lo driver-ti.lo
LIBRARY=libtermkey.la
%.lo: %.c termkey.h termkey-internal.h
$(LIBTOOL) --mode=compile gcc $(CFLAGS) $(CFLAGS_DEBUG) -Wall -std=c99 -o $@ -c $<
$(LIBTOOL) --mode=compile --tag=CC gcc $(CFLAGS) $(CFLAGS_DEBUG) -Wall -std=c99 -o $@ -c $<
$(LIBRARY): $(OBJECTS)
$(LIBTOOL) --mode=link gcc -rpath $(LIBDIR) -version-info $(VERSION_CURRENT):$(VERSION_REVISION):$(VERSION_AGE) -lncurses -o $@ $^
$(LIBTOOL) --mode=link --tag=CC gcc -rpath $(LIBDIR) -version-info $(VERSION_CURRENT):$(VERSION_REVISION):$(VERSION_AGE) -lncurses -o $@ $^
demo: $(LIBRARY) demo.lo
$(LIBTOOL) --mode=link gcc -o $@ $^
$(LIBTOOL) --mode=link --tag=CC gcc -o $@ $^
demo-async: $(LIBRARY) demo-async.lo
$(LIBTOOL) --mode=link gcc -o $@ $^
$(LIBTOOL) --mode=link --tag=CC gcc -o $@ $^
.PHONY: clean
clean: