Makefile.shared (160814) | Makefile.shared (162911) |
---|---|
1# 2# Helper makefile to link shared libraries in a portable way. 3# This is much simpler than libtool, and hopefully not too error-prone. 4# 5# The following variables need to be set on the command line to build 6# properly 7 8# CC contains the current compiler. This one MUST be defined --- 441 unchanged lines hidden (view full) --- 450# was introduced in HP-UX 11.x and applies in 32-bit PA-RISC link 451# editor context only [it's simply ignored in other cases, which are all 452# ELFs by the way]. 453# 454link_o.hpux: 455 @if ${DETECT_GNU_LD}; then $(DO_GNU_SO); else \ 456 $(CALC_VERSIONS); \ 457 SHLIB=lib$(LIBNAME).sl; \ | 1# 2# Helper makefile to link shared libraries in a portable way. 3# This is much simpler than libtool, and hopefully not too error-prone. 4# 5# The following variables need to be set on the command line to build 6# properly 7 8# CC contains the current compiler. This one MUST be defined --- 441 unchanged lines hidden (view full) --- 450# was introduced in HP-UX 11.x and applies in 32-bit PA-RISC link 451# editor context only [it's simply ignored in other cases, which are all 452# ELFs by the way]. 453# 454link_o.hpux: 455 @if ${DETECT_GNU_LD}; then $(DO_GNU_SO); else \ 456 $(CALC_VERSIONS); \ 457 SHLIB=lib$(LIBNAME).sl; \ |
458 expr "$(CFLAGS)" : 'DSO_DLFCN' > /dev/null && SHLIB=lib$(LIBNAME).so; \ | 458 expr "$(CFLAGS)" : '.*DSO_DLFCN' > /dev/null && SHLIB=lib$(LIBNAME).so; \ |
459 SHLIB_SUFFIX=; \ 460 ALLSYMSFLAGS='-Wl,-Fl'; \ 461 NOALLSYMSFLAGS=''; \ 462 expr $(PLATFORM) : 'hpux64' > /dev/null && ALLSYMSFLAGS='-Wl,+forceload'; \ 463 SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -Wl,-B,symbolic,+vnocompatwarnings,-z,+s,+h,$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"; \ 464 fi; \ 465 rm -f $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX || :; \ 466 $(LINK_SO_O) && chmod a=rx $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX --- 137 unchanged lines hidden --- | 459 SHLIB_SUFFIX=; \ 460 ALLSYMSFLAGS='-Wl,-Fl'; \ 461 NOALLSYMSFLAGS=''; \ 462 expr $(PLATFORM) : 'hpux64' > /dev/null && ALLSYMSFLAGS='-Wl,+forceload'; \ 463 SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -Wl,-B,symbolic,+vnocompatwarnings,-z,+s,+h,$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"; \ 464 fi; \ 465 rm -f $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX || :; \ 466 $(LINK_SO_O) && chmod a=rx $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX --- 137 unchanged lines hidden --- |