I've been struggling with the most minor issue I've ever dealt with while working with SCons, but this trivialness seems to not go away that easily as the issue itself is.
So here's the situation.
I have a project that compiles perfectly when I just append a single forward slash at the end of a libpath in one of the system libraries of XCode.
When I give that to SCons, it some how strips that slash out and invokes a g++ -out without that slash.
When I manually use the g++ command it invokes with the slash, it works.
The following are the code snippets to help your understanding.
This is the code that appends the library:
env.AppendUnique(LIBPATH = [r'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/usr/lib/system/'])
As you can see I have a slash behind 'usr/lib/system'.
And here is the g++ command invoked by SCons:
g++ -o output.dylib stuff.os -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/usr/lib/system -otherstuff...
As you can see, the slash is tripped off at the end.
So if I do this:
g++ -o output.dylib stuff.os -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/usr/lib/system/ -otherstuff...
Everything works perfectly.
Any ideas on how to fix this stupid problem of a stupid newbie?
Many thanks to you guys in advance!