This repository was archived by the owner on Oct 12, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ test/shared/.run: $(DRUNTIMESO)
265
265
test/% /.run : test/% /Makefile
266
266
$(QUIET )$(MAKE ) -C test/$* MODEL=$(MODEL ) OS=$(OS ) DMD=$(abspath $(DMD ) ) BUILD=$(BUILD ) \
267
267
DRUNTIME=$(abspath $(DRUNTIME ) ) DRUNTIMESO=$(abspath $(DRUNTIMESO ) ) LINKDL=$(LINKDL ) \
268
- QUIET=$(QUIET ) TIMELIMIT=' $(TIMELIMIT)'
268
+ QUIET=$(QUIET ) TIMELIMIT=' $(TIMELIMIT)' PIC= $( PIC )
269
269
270
270
# ################### test for undesired white spaces ##########################
271
271
MANIFEST = $(shell git ls-tree --name-only -r HEAD)
Original file line number Diff line number Diff line change @@ -14,11 +14,13 @@ SRC:=src
14
14
GENERATED: =./generated
15
15
ROOT: =$(GENERATED ) /$(OS ) /$(BUILD ) /$(MODEL )
16
16
17
+ OPTIONAL_PIC: =$(if $(PIC ) ,-fPIC,)
18
+
17
19
ifneq (default,$(MODEL ) )
18
20
MODEL_FLAG:=-m$(MODEL)
19
21
endif
20
22
CFLAGS: =$(MODEL_FLAG ) -Wall
21
- DFLAGS: =$(MODEL_FLAG ) -w -I../../src -I../../import -I$(SRC ) -defaultlib= -debuglib= -dip1000
23
+ DFLAGS: =$(MODEL_FLAG ) -w -I../../src -I../../import -I$(SRC ) -defaultlib= -debuglib= -dip1000 $( OPTIONAL_PIC )
22
24
# LINK_SHARED may be set by importing makefile
23
25
DFLAGS+ =$(if $(LINK_SHARED ) ,-L$(DRUNTIMESO ) ,-L$(DRUNTIME ) )
24
26
ifeq ($(BUILD ) ,debug)
You can’t perform that action at this time.
0 commit comments