You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
559B

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