diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2019-07-22 16:05:16 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2019-07-22 16:05:16 +0000 |
commit | baa77a995dffca695612aa028aa8b300c0ef95cb (patch) | |
tree | d207868bf47598d4de62bfe2cfca284506a8c783 | |
parent | 65f59682b4dddcc29d7546334be136e76bddde91 (diff) | |
download | utmps-baa77a995dffca695612aa028aa8b300c0ef95cb.tar.gz utmps-baa77a995dffca695612aa028aa8b300c0ef95cb.tar.xz utmps-baa77a995dffca695612aa028aa8b300c0ef95cb.zip |
Makefile needs to be adjusted too
-rw-r--r-- | Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Makefile b/Makefile index 04360b4..b666b05 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,6 @@ else CFLAGS_SHARED := endif LDFLAGS_ALL := $(LDFLAGS_AUTO) $(LDFLAGS) -REALCC = $(CROSS_COMPILE)$(CC) AR := $(CROSS_COMPILE)ar RANLIB := $(CROSS_COMPILE)ranlib STRIP := $(CROSS_COMPILE)strip @@ -134,20 +133,20 @@ $(DESTDIR)$(includedir)/utmpx.h: src/include/utmpx.h exec $(INSTALL) -D -m 644 $< $@ %.o: %.c - exec $(REALCC) $(CPPFLAGS_ALL) $(CFLAGS_ALL) -c -o $@ $< + exec $(CC) $(CPPFLAGS_ALL) $(CFLAGS_ALL) -c -o $@ $< %.lo: %.c - exec $(REALCC) $(CPPFLAGS_ALL) $(CFLAGS_ALL) $(CFLAGS_SHARED) -c -o $@ $< + exec $(CC) $(CPPFLAGS_ALL) $(CFLAGS_ALL) $(CFLAGS_SHARED) -c -o $@ $< $(ALL_BINS): - exec $(REALCC) -o $@ $(CFLAGS_ALL) $(LDFLAGS_ALL) $(LDFLAGS_NOSHARED) $^ $(EXTRA_LIBS) $(LDLIBS) + exec $(CC) -o $@ $(CFLAGS_ALL) $(LDFLAGS_ALL) $(LDFLAGS_NOSHARED) $^ $(EXTRA_LIBS) $(LDLIBS) lib%.a.xyzzy: exec $(AR) rc $@ $^ exec $(RANLIB) $@ lib%.so.xyzzy: - exec $(REALCC) -o $@ $(CFLAGS_ALL) $(CFLAGS_SHARED) $(LDFLAGS_ALL) $(LDFLAGS_SHARED) -Wl,-soname,$(patsubst lib%.so.xyzzy,lib%.so.$(version_M),$@) $^ $(EXTRA_LIBS) $(LDLIBS) + exec $(CC) -o $@ $(CFLAGS_ALL) $(CFLAGS_SHARED) $(LDFLAGS_ALL) $(LDFLAGS_SHARED) -Wl,-soname,$(patsubst lib%.so.xyzzy,lib%.so.$(version_M),$@) $^ $(EXTRA_LIBS) $(LDLIBS) .PHONY: it all clean distclean tgz strip install install-dynlib install-bin install-lib install-include install-data |