Changeset 10188 in vbox
- Timestamp:
- Jul 4, 2008 2:22:39 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/Makefile.kmk
r10186 r10188 372 372 373 373 # The command sans -o op.S.tmp. 374 COMPILE_OP_CMDS = $(VBOX_RECOMPILER_OP_GCC) \374 COMPILE_OP_CMDS_3 = $(VBOX_RECOMPILER_OP_GCC) \ 375 375 -S -s \ 376 376 $(filter-out -g -O0, \ … … 378 378 $(target-i386/op.c_CFLAGS) $(target-i386/op.c_CFLAGS.$(KBUILD_TARGET)) $(target-i386/op.c_CFLAGS.$(KBUILD_TARGET_ARCH)) $(target-i386/op.c_CFLAGS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) \ 379 379 ) \ 380 $(addprefix -I, \380 $(addprefix -I, $(abspathex \ 381 381 $($(REM_MOD)_CINCS.$(KBUILD_TARGET_ARCH)) $($(REM_MOD)_CINCS.$(KBUILD_TARGET)) $($(REM_MOD)_CINCS) $(CINCS) \ 382 382 $($(REM_MOD)_INCS.$(KBUILD_TARGET_ARCH)) $($(REM_MOD)_INCS.$(KBUILD_TARGET)) $($(REM_MOD)_INCS) $(INCS) \ 383 ) \383 , $($(REM_MOD)_PATH))) \ 384 384 $(addprefix -D, \ 385 385 $($(REM_MOD)_CDEFS.$(KBUILD_TARGET_ARCH)) $($(REM_MOD)_CDEFS.$(KBUILD_TARGET)) $($(REM_MOD)_CDEFS) $(CDEFS.$(KBUILD_TARGET)) $(CDEFS.$(KBUILD_TARGET_ARCH)) $(CDEFS.$(KBUILD_TYPE)) $(CDEFS) \ … … 389 389 -Wp,-MT,$(PATH_$(REM_MOD))/op.S \ 390 390 -Wp,-MP \ 391 target-i386/op.c391 $(VBOX_PATH_RECOMPILER_SRC)/target-i386/op.c 392 392 393 393 # Use the right GCC includes. 394 394 ifdef VBOX_RECOMPILER_OP_GCC_INCS 395 COMPILE_OP_CMDS := $(subst $(VBOX_PATH_GCC_INCS),$(VBOX_RECOMPILER_OP_GCC_INCS),$(COMPILE_OP_CMDS)) 395 COMPILE_OP_CMDS_2 = $(subst $(VBOX_PATH_GCC_INCS),$(VBOX_RECOMPILER_OP_GCC_INCS),$(COMPILE_OP_CMDS_3)) 396 else 397 COMPILE_OP_CMDS_2 = $(COMPILE_OP_CMDS_3) 396 398 endif 397 399 … … 399 401 ifeq ($(KBUILD_TARGET),darwin) 400 402 ifeq ($(filter-out i386-elf-gcc%, $(VBOX_RECOMPILER_OP_GCC)),) 401 COMPILE_OP_CMDS := $(filter-out -mdynamic-no-pic -mno-dynamic-no-pic -fno-stack-protector, $(COMPILE_OP_CMDS))403 COMPILE_OP_CMDS = $(filter-out -mdynamic-no-pic -mno-dynamic-no-pic -fno-stack-protector, $(COMPILE_OP_CMDS_2)) 402 404 endif 403 405 else if1of ($(KBUILD_TARGET),linux) … … 407 409 then echo "$(1)"; \ 408 410 else echo "$(2)"; fi; ) 409 COMPILE_OP_CMDS := \410 $(filter-out -fno-stack-protector, $(COMPILE_OP_CMDS )) \411 COMPILE_OP_CMDS = \ 412 $(filter-out -fno-stack-protector, $(COMPILE_OP_CMDS_2)) \ 411 413 $(call VBOX_RECOMPILER_OP_CHECK_CC_GCC,-fno-stack-protector) 412 414 endif 413 415 endif 416 COMPILE_OP_CMDS ?= $(COMPILE_OP_CMDS_2) 414 417 415 418 # include the dependencies … … 424 427 $(VBOX_PATH_RECOMPILER_SRC)/Sun/op-undefined.lst \ 425 428 $(VBOX_PATH_RECOMPILER_SRC)/Makefile.kmk \ 426 $ (comp-cmds COMPILE_OP_CMDS,COMPILE_OP_CMDS_PREV,FORCE) \429 $$(comp-cmds COMPILE_OP_CMDS,COMPILE_OP_CMDS_PREV,FORCE) \ 427 430 | $(call DIRDEP,$(PATH_$(REM_MOD))) 428 431 $(RM) -f $@ [email protected] [email protected] [email protected]
Note:
See TracChangeset
for help on using the changeset viewer.