projects
/
fw
/
stlink
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a781594
)
Add -fPIC compiler flag, remove st-info from libstlink.a which is already specified...
author
Jerry Jacobs
<jerry.jacobs@dualinventive.com>
Fri, 15 Apr 2016 13:53:35 +0000
(15:53 +0200)
committer
Jerry Jacobs
<jerry.jacobs@dualinventive.com>
Fri, 15 Apr 2016 14:05:36 +0000
(16:05 +0200)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index 0c9e75ea7f9033f0e20eafab7667ca3b1ef3af94..659218f7443448c19af1ea7896cea1a27d0607ba 100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-35,6
+35,7
@@
add_cflag_if_supported("-Wshorten-64-to-32")
add_cflag_if_supported("-Wimplicit-function-declaration")
add_cflag_if_supported("-Wredundant-decls")
add_cflag_if_supported("-Wundef")
+add_cflag_if_supported("-fPIC")
if(${CMAKE_BUILD_TYPE} MATCHES "Debug")
include(CTest)
@@
-54,7
+55,7
@@
set(CFILES src/stlink-common.c
src/stlink-usb.c
src/stlink-sg.c
src/uglylogging.c
-
src/st-info.c
)
+ )
include_directories(${libusb_INCLUDE_DIRS})
include_directories(src)