Project

General

Profile

Bug #5106 ยป 0003-elfdump-build-is-using-the-wrong-procfs.h.patch

Gordon Ross, 2014-08-19 11:12 PM

View differences:

usr/src/cmd/sgs/elfdump/Makefile.targ
42 42
		$(COMPILE.c) -o $@ $<
43 43
		$(POST_PROCESS_O)
44 44

  
45
# This program runs "native" (on the build machine) but needs to use
46
# headers from our proto area.  These are technically the wrong headers
47
# to use for compiling a native program but we get away with it because
48
# this program uses only a few standard libc functions like printf.
45 49
gen_struct_layout:	../common/gen_struct_layout.c
46
		$(NATIVECC) $(NATIVECC_CFLAGS) $(CFLAGS) -o $@ \
50
		$(NATIVECC) $(CFLAGS) $(CPPFLAGS.native) -o $@ \
47 51
			../common/gen_struct_layout.c
48 52

  
49 53
$(PROG):	$(OBJS) $(MAPFILE) gen_struct_layout
    (1-1/1)