Skip to content

Commit

Permalink
Remove the '-all_load' linker flags by default. Issue #234.
Browse files Browse the repository at this point in the history
  • Loading branch information
angelolloqui committed Apr 27, 2012
1 parent ab1f905 commit 0b2bd1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/cocoapods/installer/target_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def quoted(strings)
end

def default_ld_flags
flags = %w{-ObjC -all_load}
flags = %w{-ObjC}
flags << '-fobjc-arc' if @podfile.set_arc_compatibility_flag? && self.requires_arc
flags.join(" ")
end
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/installer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
@xcconfig['ALWAYS_SEARCH_USER_PATHS'].should == 'YES'
end

it "configures the project to load categories from the static library" do
@xcconfig['OTHER_LDFLAGS'].should == '-ObjC -all_load'
it "configures the project to load all members that implement Objective-c classes or categories from the static library" do
@xcconfig['OTHER_LDFLAGS'].should == '-ObjC'
end

it "sets the PODS_ROOT build variable" do
Expand Down

0 comments on commit 0b2bd1e

Please sign in to comment.