瀏覽代碼

Link w libcc.

Eric Andersen 23 年之前
父節點
當前提交
3a1706486f
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      test/silly/Makefile

+ 3 - 1
test/silly/Makefile

@@ -5,13 +5,15 @@ include $(TOPDIR)Rules.mak
 LSFLAGS = $(shell if ls -sh >/dev/null 2>&1; \
     then echo "-sh"; else echo "-s" ; fi)
 
-XCFLAGS = -Wall -Os -fomit-frame-pointer -fno-builtin -nostdinc \
+#XCFLAGS = -Wall -Os -fomit-frame-pointer -fno-builtin -nostdinc \
+XCFLAGS = -Wall -Os -fomit-frame-pointer -nostdinc \
 	-I$(TOPDIR)include -I/usr/include/linux
 XLDFLAGS = -nostdlib -s -gc-sections
 EXTRA_LIBS=$(TOPDIR)libc.a
 
 YCFLAGS = -Wall -Os -fomit-frame-pointer
 YLDFLAGS = -s --static 
+LDFLAGS += -fpic -gcc
 
 # Allow alternative stripping tools to be used...
 ifndef $(STRIPTOOL)