mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-31 07:52:55 +01:00
41573a702b
--as-needed. Patch by Felix Geyer. Fixes pr13262. llvm-svn: 162652
32 lines
1.0 KiB
Makefile
32 lines
1.0 KiB
Makefile
#===- tools/gold/Makefile ----------------------------------*- Makefile -*-===##
|
|
#
|
|
# The LLVM Compiler Infrastructure
|
|
#
|
|
# This file is distributed under the University of Illinois Open Source
|
|
# License. See LICENSE.TXT for details.
|
|
#
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
LEVEL := ../..
|
|
LIBRARYNAME := LLVMgold
|
|
LINK_COMPONENTS := support
|
|
LINK_LIBS_IN_SHARED := 1
|
|
SHARED_LIBRARY := 1
|
|
LOADABLE_MODULE := 1
|
|
|
|
EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/gold.exports
|
|
|
|
# Include this here so we can get the configuration of the targets
|
|
# that have been configured for construction. We have to do this
|
|
# early so we can set up LINK_COMPONENTS before including Makefile.rules
|
|
include $(LEVEL)/Makefile.config
|
|
|
|
# Because off_t is used in the public API, the largefile parts are required for
|
|
# ABI compatibility.
|
|
CXXFLAGS += -I$(BINUTILS_INCDIR) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
|
|
LDFLAGS += -L$(SharedLibDir)/$(SharedPrefix)
|
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
LIBS += -lLTO
|