Commit 31b517e8 authored by rmrf's avatar rmrf
Browse files

Linking fixed under gcc

parent 717bf221
......@@ -32,7 +32,7 @@ endif(USE_SAUTO)
set (LLVM_LD_FLAGS
$ENV{LLVM_LD_FLAGS}
"$ENV{LLVM_LD_FLAGS} -lpthread"
)
set (LLVM_LIBS
......@@ -110,12 +110,13 @@ endif (USE_SAUTO)
target_link_libraries( ${TARGET} ${clang_lib} )
endforeach()
foreach (ld_flag ${LLVM_LD_FLAGS})
target_link_libraries( ${TARGET} ${ld_flag} )
endforeach()
foreach (llvm_lib ${LLVM_LIBS})
target_link_libraries( ${TARGET} ${llvm_lib} )
endforeach()
foreach (ld_flag ${LLVM_LD_FLAGS})
target_link_libraries( ${TARGET} ${ld_flag} )
endforeach()
# The path where you have installed LLVM/CLANG.
# This is where make install put the executables.
export LLVM_BUILD_DIR=/usr/local/
export LLVM_BUILD_DIR=/home/twiga/clang-7.0.0/
# The path where you are building systemc-clang
export SYSTEMC_CLANG_BUILD_DIR=/home/anirudh/Programs/systemc-clang-dev/build
export SYSTEMC=/home/twiga/sw/systemc-2.3.3/
export SYSTEMC_CLANG_BUILD_DIR=/home/twiga/code/systemc-clang-build/
LLVMCOMPONENT=cppbackend
RTTIFLAG=-fno-rtti
LLVMCONFIG=$LLVM_BUILD_DIR/bin/llvm-config
export LLVM_CXX_FLAGS=`$LLVMCONFIG --cxxflags`
#export LLVM_CXX_FLAGS=`$LLVMCONFIG --cxxflags`
# The flags have changed
export LLVM_CXX_FLAGS='-I/home/twiga/$LLVM_BUILD_DIR/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -ffunction-sections -fdata-sections -O3 -DNDEBUG -fno-exceptions -fno-rtti -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS'
export LLVM_CXX_FLAGS="$LLVM_CXX_FLAGS -fvisibility-inlines-hidden"
export LLVM_LIBS=`$LLVMCONFIG --libs`
export LLVM_LIBS=`$LLVMCONFIG --libs`
export LLVM_LD_FLAGS=`$LLVMCONFIG --ldflags`
export LLVM_LD_FLAGS=`echo $LLVM_LD_FLAGS | sed 's/ *$//g'`
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment