src/makefiles/Makefile.freebsd
raw| 1 | rpath = -Wl,-R'$(rpathdir)' |
| 2 | |
| 3 | # extra stuff for $(with_temp_install) |
| 4 | # we need this to get LD_LIBRARY_PATH searched ahead of the compiled-in |
| 5 | # rpath, if no DT_RUNPATH is present in the executable. The conditions |
| 6 | # under which DT_RUNPATH are added seem unpredictable, so be safe. |
| 7 | |
| 8 | define with_temp_install_extra |
| 9 | LD_LIBRARY_PATH_RPATH=1 |
| 10 | endef |
| 11 | |
| 12 | # Rule for building a shared library from a single .o file |
| 13 | %.so: %.o |
| 14 | $(CC) $(CFLAGS) $< $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ |