Skip to content

Commit a5ca565

Browse files
authored
Merge pull request #34 from eric-ch/qa-warnings-1
toolstack: Pass -fPIC to CFLAGS.
2 parents b22cf03 + a262e25 commit a5ca565

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

common.make

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ CFLAGS ?= -Wall -fPIC -O2
1111
XEN_ROOT ?= $(TOPLEVEL)/../xen-unstable.hg
1212
XEN_DIST_ROOT ?= $(XEN_ROOT)/dist/install
1313
CFLAGS += -I$(XEN_DIST_ROOT)/usr/include
14+
CFLAGS += -fPIC
1415

1516
OCAMLOPTFLAG_G := $(shell $(OCAMLOPT) -h 2>&1 | sed -n 's/^ *\(-g\) .*/\1/p')
1617
OCAMLOPTFLAGS = $(OCAMLOPTFLAG_G) -ccopt "$(LDFLAGS)" -dtypes $(OCAMLINCLUDE) -cc "$(CC)" -w F -warn-error F
1718
OCAMLCFLAGS += -g $(OCAMLINCLUDE) -w F -warn-error F
1819

19-
#LDFLAGS = -cclib -L./
20-
2120
DESTDIR ?= /
2221
VERSION := echo 0.0
2322

libs/stdext/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ OCAML_LIBRARY = stdext
4545

4646
## OBJS
4747
threadext.cmo: threadext.ml
48-
echo $LDFLAGS
4948
$(call quiet-command, $(OCAMLC) $(OCAMLCFLAGS) -thread -c -o $@ $<,MLC,$@)
5049

5150
threadext.cmi: threadext.mli

0 commit comments

Comments
 (0)