Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Side by Side Diff: native_client_sdk/src/tools/nacl_gcc.mk

Issue 960963003: [NaCl SDK] Consistently honor LDFLAGS in SDK build system (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | native_client_sdk/src/tools/nacl_llvm.mk » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # 5 #
6 # GNU Make based build file. For details on GNU Make see: 6 # GNU Make based build file. For details on GNU Make see:
7 # http://www.gnu.org/software/make/manual/make.html 7 # http://www.gnu.org/software/make/manual/make.html
8 # 8 #
9 9
10 # 10 #
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 # $3 = List of LIBS 348 # $3 = List of LIBS
349 # $4 = List of DEPS 349 # $4 = List of DEPS
350 # $5 = Link Flags 350 # $5 = Link Flags
351 # $6 = Library Paths 351 # $6 = Library Paths
352 # 352 #
353 define LINKER_RULE 353 define LINKER_RULE
354 ifneq (,$(findstring x86_32,$(ARCHES))) 354 ifneq (,$(findstring x86_32,$(ARCHES)))
355 all: $(X86_32_OUTDIR)/$(1)_x86_32.nexe 355 all: $(X86_32_OUTDIR)/$(1)_x86_32.nexe
356 $(X86_32_OUTDIR)/$(1)_x86_32.nexe: $(foreach src,$(2),$(call SRC_TO_OBJ,$(src),_ x86_32)) $(foreach dep,$(4),$(STAMPDIR)/$(dep).stamp) 356 $(X86_32_OUTDIR)/$(1)_x86_32.nexe: $(foreach src,$(2),$(call SRC_TO_OBJ,$(src),_ x86_32)) $(foreach dep,$(4),$(STAMPDIR)/$(dep).stamp)
357 $(MKDIR) -p $$(dir $$@) 357 $(MKDIR) -p $$(dir $$@)
358 » $(call LOG,LINK,$$@,$(X86_32_LINK) -o $$@ $$(filter %.o,$$^) $(NACL_LDFL AGS) $(X86_32_LDFLAGS) $(foreach path,$(6),-L$(path)/$(TOOLCHAIN)_x86_32/$(CONFI G)) $(foreach lib,$(3),-l$(lib)) $(5)) 358 » $(call LOG,LINK,$$@,$(X86_32_LINK) -o $$@ $$(filter %.o,$$^) $(NACL_LDFL AGS) $(X86_32_LDFLAGS) $(LDFLAGS) $(foreach path,$(6),-L$(path)/$(TOOLCHAIN)_x86 _32/$(CONFIG)) $(foreach lib,$(3),-l$(lib)) $(5))
359 $(call LOG,VALIDATE,$$@,$(NCVAL) $$@) 359 $(call LOG,VALIDATE,$$@,$(NCVAL) $$@)
360 endif 360 endif
361 361
362 ifneq (,$(findstring x86_64,$(ARCHES))) 362 ifneq (,$(findstring x86_64,$(ARCHES)))
363 all: $(X86_64_OUTDIR)/$(1)_x86_64.nexe 363 all: $(X86_64_OUTDIR)/$(1)_x86_64.nexe
364 $(X86_64_OUTDIR)/$(1)_x86_64.nexe: $(foreach src,$(2),$(call SRC_TO_OBJ,$(src),_ x86_64)) $(foreach dep,$(4),$(STAMPDIR)/$(dep).stamp) 364 $(X86_64_OUTDIR)/$(1)_x86_64.nexe: $(foreach src,$(2),$(call SRC_TO_OBJ,$(src),_ x86_64)) $(foreach dep,$(4),$(STAMPDIR)/$(dep).stamp)
365 $(MKDIR) -p $$(dir $$@) 365 $(MKDIR) -p $$(dir $$@)
366 » $(call LOG,LINK,$$@,$(X86_64_LINK) -o $$@ $$(filter %.o,$$^) $(NACL_LDFL AGS) $(X86_64_LDFLAGS) $(foreach path,$(6),-L$(path)/$(TOOLCHAIN)_x86_64/$(CONFI G)) $(foreach lib,$(3),-l$(lib)) $(5)) 366 » $(call LOG,LINK,$$@,$(X86_64_LINK) -o $$@ $$(filter %.o,$$^) $(NACL_LDFL AGS) $(X86_64_LDFLAGS) $(LDFLAGS) $(foreach path,$(6),-L$(path)/$(TOOLCHAIN)_x86 _64/$(CONFIG)) $(foreach lib,$(3),-l$(lib)) $(5))
367 $(call LOG,VALIDATE,$$@,$(NCVAL) $$@) 367 $(call LOG,VALIDATE,$$@,$(NCVAL) $$@)
368 endif 368 endif
369 369
370 ifneq (,$(findstring arm,$(ARCHES))) 370 ifneq (,$(findstring arm,$(ARCHES)))
371 all: $(ARM_OUTDIR)/$(1)_arm.nexe 371 all: $(ARM_OUTDIR)/$(1)_arm.nexe
372 $(ARM_OUTDIR)/$(1)_arm.nexe: $(foreach src,$(2),$(call SRC_TO_OBJ,$(src),_arm)) $(foreach dep,$(4),$(STAMPDIR)/$(dep).stamp) 372 $(ARM_OUTDIR)/$(1)_arm.nexe: $(foreach src,$(2),$(call SRC_TO_OBJ,$(src),_arm)) $(foreach dep,$(4),$(STAMPDIR)/$(dep).stamp)
373 $(MKDIR) -p $$(dir $$@) 373 $(MKDIR) -p $$(dir $$@)
374 » $(call LOG,LINK,$$@,$(ARM_LINK) $(BIONIC_LINK) -o $$@ $$(filter %.o,$$^) $(NACL_LDFLAGS) $(ARM_LDFLAGS) $(foreach path,$(6),-L$(path)/$(TOOLCHAIN)_arm/$ (CONFIG)) $(foreach lib,$(3),-l$(lib)) $(5)) 374 » $(call LOG,LINK,$$@,$(ARM_LINK) $(BIONIC_LINK) -o $$@ $$(filter %.o,$$^) $(NACL_LDFLAGS) $(ARM_LDFLAGS) $(LDFLAGS) $(foreach path,$(6),-L$(path)/$(TOOLC HAIN)_arm/$(CONFIG)) $(foreach lib,$(3),-l$(lib)) $(5))
375 $(call LOG,VALIDATE,$$@,$(NCVAL) $$@) 375 $(call LOG,VALIDATE,$$@,$(NCVAL) $$@)
376 endif 376 endif
377 endef 377 endef
378 378
379 379
380 # 380 #
381 # Generalized Link Macro 381 # Generalized Link Macro
382 # 382 #
383 # $1 = Target Name 383 # $1 = Target Name
384 # $2 = List of Sources 384 # $2 = List of Sources
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 $(error Cannot run in sel_ldr unless $$NACL_ARCH is set) 561 $(error Cannot run in sel_ldr unless $$NACL_ARCH is set)
562 endif 562 endif
563 $(SEL_LDR_PATH) $(SEL_LDR_ARGS) $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe -- $(EXE_ARGS) 563 $(SEL_LDR_PATH) $(SEL_LDR_ARGS) $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe -- $(EXE_ARGS)
564 564
565 debug: all 565 debug: all
566 ifndef NACL_ARCH 566 ifndef NACL_ARCH
567 $(error Cannot run in sel_ldr unless $$NACL_ARCH is set) 567 $(error Cannot run in sel_ldr unless $$NACL_ARCH is set)
568 endif 568 endif
569 $(SEL_LDR_PATH) -d $(SEL_LDR_ARGS) $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe -- $(EXE_ARGS) 569 $(SEL_LDR_PATH) -d $(SEL_LDR_ARGS) $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe -- $(EXE_ARGS)
570 endif 570 endif
OLDNEW
« no previous file with comments | « no previous file | native_client_sdk/src/tools/nacl_llvm.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698