Commit 0e3d34a3 authored by Andrea Cremaschi's avatar Andrea Cremaschi Committed by Samuel Giddins

[xcconfig_helper] Remove the library name's extension when adding it in the…

[xcconfig_helper] Remove the library name's extension when adding it in the "linker flags" build setting to support dynamic libraries.
parent e8c9366e
...@@ -11,7 +11,7 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -11,7 +11,7 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
* Improve `pod search` performance while using _`--full`_ flag * Improve `pod search` performance while using _`--full`_ flag
[Muhammed Yavuz Nuzumlalı](https://github.com/manuyavuz) [Muhammed Yavuz Nuzumlalı](https://github.com/manuyavuz)
[cocoapods-search#8](https://github.com/CocoaPods/cocoapods-search/issues/8) [cocoapods-search#8](https://github.com/CocoaPods/cocoapods-search/issues/8)
* Improve message when there is no spec in repos for dependency set in Podfile. * Improve message when there is no spec in repos for dependency set in Podfile.
[Muhammed Yavuz Nuzumlalı](https://github.com/manuyavuz) [Muhammed Yavuz Nuzumlalı](https://github.com/manuyavuz)
[#4430](https://github.com/CocoaPods/CocoaPods/issues/4430) [#4430](https://github.com/CocoaPods/CocoaPods/issues/4430)
...@@ -82,6 +82,11 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -82,6 +82,11 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[Samuel Giddins](https://github.com/segiddins) [Samuel Giddins](https://github.com/segiddins)
[#3683](https://github.com/CocoaPods/CocoaPods/issues/3683) [#3683](https://github.com/CocoaPods/CocoaPods/issues/3683)
* Remove the library name's extension when adding it in the "linker flags" build
setting to support dynamic libraries.
[Andrea Cremaschi](https://github.com/andreacremaschi)
[#4468](https://github.com/CocoaPods/CocoaPods/issues/4468)
## 0.39.0 (2015-10-09) ## 0.39.0 (2015-10-09)
......
...@@ -153,7 +153,8 @@ module Pod ...@@ -153,7 +153,8 @@ module Pod
# The path retrieved from Sandbox#root. # The path retrieved from Sandbox#root.
# #
def self.add_library_build_settings(library_path, xcconfig, sandbox_root) def self.add_library_build_settings(library_path, xcconfig, sandbox_root)
name = File.basename(library_path, '.a').sub(/\Alib/, '') extension = File.extname(library_path)
name = File.basename(library_path, extension).sub(/\Alib/, '')
dirname = '${PODS_ROOT}/' + library_path.dirname.relative_path_from(sandbox_root).to_s dirname = '${PODS_ROOT}/' + library_path.dirname.relative_path_from(sandbox_root).to_s
build_settings = { build_settings = {
'OTHER_LDFLAGS' => "-l#{name}", 'OTHER_LDFLAGS' => "-l#{name}",
......
Markdown is supported
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