mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
Fix assignment of -fPIC to CMAKE_C_FLAGS. Configure llvm-config.in.in
with the contents of CMAKE_C(XX)_FLAGS too, else `llvm-config --c(xx)flags' doesn't tell the absolute truth. This comes from PR9603 and is based on a patch by Ryuta Suzuki! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128727 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a4485c4964
commit
c2db19ebf4
@ -84,7 +84,7 @@ if( LLVM_ENABLE_PIC )
|
||||
if( SUPPORTS_FPIC_FLAG )
|
||||
message(STATUS "Building with -fPIC")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
|
||||
else( SUPPORTS_FPIC_FLAG )
|
||||
message(WARNING "-fPIC not supported.")
|
||||
endif()
|
||||
|
@ -7,7 +7,7 @@ endif( NOT PERL_FOUND )
|
||||
|
||||
set(PERL ${PERL_EXECUTABLE})
|
||||
set(VERSION PACKAGE_VERSION)
|
||||
set(PREFIX ${LLVM_BINARY_DIR}) # TODO: Root for `make install'.
|
||||
set(PREFIX ${CMAKE_INSTALL_PREFIX})
|
||||
set(abs_top_srcdir ${LLVM_MAIN_SRC_DIR})
|
||||
set(abs_top_builddir ${LLVM_BINARY_DIR})
|
||||
execute_process(COMMAND date
|
||||
@ -91,9 +91,13 @@ add_custom_command(OUTPUT ${FINAL_LIBDEPS}
|
||||
DEPENDS ${LIBDEPS}
|
||||
COMMENT "Checking for cyclic dependencies between LLVM libraries.")
|
||||
|
||||
set(C_FLGS "${CMAKE_C_FLAGS_${uppercase_CMAKE_BUILD_TYPE}} ${LLVM_DEFINITIONS}")
|
||||
set(CXX_FLGS "${CMAKE_CXX_FLAGS_${uppercase_CMAKE_BUILD_TYPE}} ${LLVM_DEFINITIONS}")
|
||||
set(CPP_FLGS "${CMAKE_CPP_FLAGS_${uppercase_CMAKE_BUILD_TYPE}} ${LLVM_DEFINITIONS}")
|
||||
set(C_FLGS "${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_${uppercase_CMAKE_BUILD_TYPE}} ${LLVM_DEFINITIONS}")
|
||||
message(STATUS "C_FLGS: ${C_FLGS}")
|
||||
message(STATUS "CMAKE_C_FLAGS: ${CMAKE_C_FLAGS}")
|
||||
message(STATUS "LLVM_DEFINITIONS: ${LLVM_DEFINITIONS}")
|
||||
message(STATUS "other: ${CMAKE_CXX_FLAGS_${uppercase_CMAKE_BUILD_TYPE}}")
|
||||
set(CXX_FLGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${uppercase_CMAKE_BUILD_TYPE}} ${LLVM_DEFINITIONS}")
|
||||
set(CPP_FLGS "${CMAKE_CPP_FLAGS} ${CMAKE_CPP_FLAGS_${uppercase_CMAKE_BUILD_TYPE}} ${LLVM_DEFINITIONS}")
|
||||
|
||||
# We don't want certain flags on the output of
|
||||
# llvm-config --cflags --cxxflags
|
||||
|
Loading…
x
Reference in New Issue
Block a user