--- code/hardware/vr/Makefile.old	2009-07-18 11:28:59.000000000 -0700
+++ code/hardware/vr/Makefile	2009-07-18 11:31:23.000000000 -0700
@@ -47,7 +47,7 @@
 ifeq ($(PLATFORM), Darwin)
 
 avatar.so: avatar.o
-	gcc -bundle -flat_namespace -undefined suppress avatar.o -lode -L/opt/local/lib -o avatar.so
+	gcc -bundle -flat_namespace -undefined suppress avatar.o -lode -L@@PREFIX@@/lib -o avatar.so
 
 avatar.o: avatar.c
 	gcc -fPIC -c avatar.c -I$(INCLUDEPY)
