Switch to adding ./ to rpath to find CTRE code

This makes the startup scripts simpler.

Change-Id: Ida099eb1fd6a16c4f146f5e55e8c1ca1665fbbde
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/aos/starter/starter.sh b/aos/starter/starter.sh
index ff210dc..9bc7605 100755
--- a/aos/starter/starter.sh
+++ b/aos/starter/starter.sh
@@ -6,12 +6,7 @@
   /usr/local/natinst/etc/init.d/systemWebServer stop
 
   ROBOT_CODE="/home/admin/bin"
-
-  # Get the CTRE libraries in the shared library search path
-  for f in $(ls *.so);
-  do
-    ln -f -s /home/admin/bin/$f /usr/local/frc/third-party/lib/$f
-  done
+  cd "${ROBOT_CODE}"
 
   ln -s /var/local/natinst/log/FRC_UserProgram.log /tmp/FRC_UserProgram.log
   ln -s /var/local/natinst/log/FRC_UserProgram.log "${ROBOT_CODE}/FRC_UserProgram.log"
diff --git a/third_party/BUILD b/third_party/BUILD
index cff81fd..8dbb529 100644
--- a/third_party/BUILD
+++ b/third_party/BUILD
@@ -24,6 +24,10 @@
 
 cc_library(
     name = "phoenix",
+    linkopts = [
+        "-Wl,-rpath",
+        "-Wl,.",
+    ],
     target_compatible_with = ["//tools/platforms/hardware:roborio"],
     visibility = ["//visibility:public"],
     deps = [