9884 cw(1) should use -fpic rather than -Kpic
[unleashed.git] / usr / src / boot / sys / boot / libstand / i386 / Makefile
blob80983da037bfa439ee8b46801d57cbd1f748e413
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2016 Toomas Soome <tsoome@me.com>
16 include ../Makefile.com
18 MACHINE= $(MACH)
20 CFLAGS += -m32 -fno-reorder-functions
21 CFLAGS += -mpreferred-stack-boundary=2
23 # _setjmp/_longjmp
24 SRCS += $(LIBSTAND_SRC)/i386/_setjmp.S
25 OBJS += _setjmp.o
27 $(LIBRARY): $(SRCS) $(OBJS)
29 %.o: $(LIBSTAND_SRC)/i386/%.S
30 $(COMPILE.S) $<