Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
5c387ba4
Commit
5c387ba4
authored
Aug 08, 2015
by
Brenden Blanco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup some flags left on during development
Signed-off-by:
Brenden Blanco
<
bblanco@plumgrid.com
>
parent
985adf61
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
CMakeLists.txt
CMakeLists.txt
+3
-3
src/cc/CMakeLists.txt
src/cc/CMakeLists.txt
+0
-2
No files found.
CMakeLists.txt
View file @
5c387ba4
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
cmake_minimum_required
(
VERSION 2.8.7
)
cmake_minimum_required
(
VERSION 2.8.7
)
project
(
bcc
)
project
(
bcc
)
set
(
CMAKE_BUILD_TYPE
Debug
)
set
(
CMAKE_BUILD_TYPE
Release
)
enable_testing
()
enable_testing
()
...
@@ -41,8 +41,8 @@ FOREACH(DIR ${LLVM_INCLUDE_DIRS})
...
@@ -41,8 +41,8 @@ FOREACH(DIR ${LLVM_INCLUDE_DIRS})
include_directories
(
"
${
DIR
}
/../tools/clang/include"
)
include_directories
(
"
${
DIR
}
/../tools/clang/include"
)
ENDFOREACH
()
ENDFOREACH
()
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-Wall"
)
set
(
CMAKE_C_FLAGS
"-Wall"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=c++11 -Wall"
)
set
(
CMAKE_CXX_FLAGS
"-std=c++11 -Wall"
)
endif
()
endif
()
add_subdirectory
(
scripts
)
add_subdirectory
(
scripts
)
...
...
src/cc/CMakeLists.txt
View file @
5c387ba4
...
@@ -16,7 +16,6 @@ configure_file(libbpfprog.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libbpfprog.pc @ONLY)
...
@@ -16,7 +16,6 @@ configure_file(libbpfprog.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libbpfprog.pc @ONLY)
# prune unused llvm static library stuff when linking into the new .so
# prune unused llvm static library stuff when linking into the new .so
set
(
CMAKE_SHARED_LINKER_FLAGS
"-Wl,--exclude-libs=ALL"
)
set
(
CMAKE_SHARED_LINKER_FLAGS
"-Wl,--exclude-libs=ALL"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fPIC"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fPIC"
)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-strict-aliasing")
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-fPIC"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-fPIC"
)
# if gcc 4.9 or higher is used, static libstdc++ is a good option
# if gcc 4.9 or higher is used, static libstdc++ is a good option
...
@@ -36,7 +35,6 @@ add_library(bpfprog SHARED bpf_common.cc bpf_module.cc libbpf.c)
...
@@ -36,7 +35,6 @@ add_library(bpfprog SHARED bpf_common.cc bpf_module.cc libbpf.c)
#llvm_map_components_to_libnames(llvm_libs bpf mcjit irreader passes)
#llvm_map_components_to_libnames(llvm_libs bpf mcjit irreader passes)
llvm_map_components_to_libnames
(
llvm_libs mcjit irreader passes linker
llvm_map_components_to_libnames
(
llvm_libs mcjit irreader passes linker
instrumentation objcarcopts bitwriter option x86codegen
)
instrumentation objcarcopts bitwriter option x86codegen
)
message
(
STATUS
"llvm_libs=
${
llvm_libs
}
"
)
# order is important
# order is important
set
(
clang_libs
${
libclangFrontend
}
${
libclangSerialization
}
${
libclangDriver
}
${
libclangParse
}
set
(
clang_libs
${
libclangFrontend
}
${
libclangSerialization
}
${
libclangDriver
}
${
libclangParse
}
${
libclangSema
}
${
libclangCodeGen
}
${
libclangAnalysis
}
${
libclangRewrite
}
${
libclangEdit
}
${
libclangSema
}
${
libclangCodeGen
}
${
libclangAnalysis
}
${
libclangRewrite
}
${
libclangEdit
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment