Fixed bug 2000 - The framework INSTALL_PATH still uses @executable_path
authorSam Lantinga <slouken@libsdl.org>
Tue, 30 Jul 2013 23:33:32 -0700
changeset 7551823c0c5b2d8d
parent 7550 ff3e041c27f3
child 7552 463f78515a07
Fixed bug 2000 - The framework INSTALL_PATH still uses @executable_path

dak180

Since the MACOSX_DEPLOYMENT_TARGET is 10.5; INSTALL_PATH should use @rpath.

See http://www.dribin.org/dave/blog/archives/2009/11/15/rpath/ for the details on why this is a good idea.
Xcode/SDL/SDL.xcodeproj/project.pbxproj
     1.1 --- a/Xcode/SDL/SDL.xcodeproj/project.pbxproj	Tue Jul 30 21:39:38 2013 -0700
     1.2 +++ b/Xcode/SDL/SDL.xcodeproj/project.pbxproj	Tue Jul 30 23:33:32 2013 -0700
     1.3 @@ -2697,7 +2697,7 @@
     1.4  				FRAMEWORK_VERSION = A;
     1.5  				HEADER_SEARCH_PATHS = /usr/X11R6/include;
     1.6  				INFOPLIST_FILE = "Info-Framework.plist";
     1.7 -				INSTALL_PATH = "@executable_path/../Frameworks";
     1.8 +				INSTALL_PATH = "@rpath";
     1.9  				OTHER_LDFLAGS = "-liconv";
    1.10  				PRODUCT_NAME = SDL2;
    1.11  				WRAPPER_EXTENSION = framework;
    1.12 @@ -2751,7 +2751,7 @@
    1.13  				FRAMEWORK_VERSION = A;
    1.14  				HEADER_SEARCH_PATHS = /usr/X11R6/include;
    1.15  				INFOPLIST_FILE = "Info-Framework.plist";
    1.16 -				INSTALL_PATH = "@executable_path/../Frameworks";
    1.17 +				INSTALL_PATH = "@rpath";
    1.18  				OTHER_LDFLAGS = "-liconv";
    1.19  				PRODUCT_NAME = SDL2;
    1.20  				WRAPPER_EXTENSION = framework;