Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
0afc21c9
Commit
0afc21c9
authored
9 years ago
by
Peter Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: fix compilation in lib
Need to add -fPIC to objects that will be put in a shared library.
parent
8c46d918
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lib/CMakeLists.txt
lib/CMakeLists.txt
+3
-1
No files found.
lib/CMakeLists.txt
View file @
0afc21c9
...
@@ -25,8 +25,10 @@ set(NGHTTP2_SOURCES
...
@@ -25,8 +25,10 @@ set(NGHTTP2_SOURCES
)
)
add_library
(
nghttp2-obj OBJECT
${
NGHTTP2_SOURCES
}
)
add_library
(
nghttp2-obj OBJECT
${
NGHTTP2_SOURCES
}
)
# Needed because the object files are linked into a shared library.
set_target_properties
(
nghttp2-obj PROPERTIES
POSITION_INDEPENDENT_CODE ON
)
add_library
(
nghttp2 SHARED $<TARGET_OBJECTS:nghttp2-obj>
)
add_library
(
nghttp2 SHARED $<TARGET_OBJECTS:nghttp2-obj>
)
#target_link_libraries(nghttp2 ...)
set_target_properties
(
nghttp2 PROPERTIES
set_target_properties
(
nghttp2 PROPERTIES
COMPILE_FLAGS
"
${
WARNCFLAGS
}
${
EXTRACFLAG
}
"
COMPILE_FLAGS
"
${
WARNCFLAGS
}
${
EXTRACFLAG
}
"
VERSION
${
LT_VERSION
}
SOVERSION
${
LT_SOVERSION
}
)
VERSION
${
LT_VERSION
}
SOVERSION
${
LT_SOVERSION
}
)
...
...
This diff is collapsed.
Click to expand it.
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