Same here on OSX:
linking ../../../LibrePilot GCS.app/Contents/Plugins/libsdlgamepad.1.0.0.dylib
ld: framework not found SDL
unfortunately i do not have a solution
As a temporary workaround i have installed ubuntu on my mac (parallels) to build librepilot.
That works without any problems.