diff options
| author | Toomas Soome <tsoome@me.com> | 2020-01-17 09:49:43 -0800 |
|---|---|---|
| committer | Toomas Soome <tsoome@me.com> | 2020-02-05 19:00:00 +0200 |
| commit | 5801b0f01c3c34499a929ed96164a5a68b470945 (patch) | |
| tree | 50e06e6f9eb27ea820f4f4e711c485499aad6e86 /usr/src/tools/cw/Makefile | |
| parent | 948761701ebc8a0cf820a973780b2fbb931c4390 (diff) | |
| download | illumos-joyent-5801b0f01c3c34499a929ed96164a5a68b470945.tar.gz | |
12217 add ld assert-deflib and guidance to gate build
Reviewed by: Robert Mustacchi <rm@fingolfin.org>
Reviewed by: Gergő Mihály Doma <domag02@gmail.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/tools/cw/Makefile')
| -rw-r--r-- | usr/src/tools/cw/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/src/tools/cw/Makefile b/usr/src/tools/cw/Makefile index 00099cb2e5..0d0908a6a5 100644 --- a/usr/src/tools/cw/Makefile +++ b/usr/src/tools/cw/Makefile @@ -44,9 +44,12 @@ $(__GNUC)CFLAGS= -O -D__sun -Wall -Wno-unknown-pragmas -Werror \ $(__SUNC)CFLAGS= -xspace -Xa -xildoff -errtags=yes -errwarn=%all \ -xc99=%all -W0,-xglobalstatic -v - -$(__GNUC)LDLIBS += -lc +$(__GNUC)LDLIBS += -Wl,-zassert-deflib=libc.so -lc $(__GNUC)LDFLAGS= $(MAPFILE.NES:%=-Wl,-M%) +$(__GNUC)ZASSERTDEFLIB = -Wl,-zassert-deflib +$(__GNUC)ZFATALWARNINGS = -Wl,-zfatal-warnings +$(__GNUC)ZGUIDANCE = -Wl,-zguidance +LDFLAGS += -Wl,$(ZDIRECT) $(ROOTONBLDMAN1ONBLDFILES) := FILEMODE= 644 CSTD= $(CSTD_GNU99) |
