make/common/Program.gmk

Print this page




  74 ifdef NEVER_ACT_AS_SERVER_CLASS_MACHINE
  75   OTHER_CPPFLAGS += -DNEVER_ACT_AS_SERVER_CLASS_MACHINE
  76 endif
  77 
  78 #
  79 # Create a dependency on libjli (Java Launcher Infrastructure)
  80 #
  81 # On UNIX, this is a relative dependency using $ORIGIN. Unfortunately, to
  82 # do this reliably on Linux takes a different syntax than Solaris.
  83 #
  84 # On Windows, this is done by using the same directory as the executable
  85 # itself, as with all the Windows libraries.
  86 #
  87 ifeq ($(PLATFORM), macosx)
  88   ifneq ($(ARCH), universal)
  89     LDFLAGS += -Wl,-all_load
  90   endif
  91   LDFLAGS += $(OUTPUTDIR)/tmp/java/jli/$(OBJDIRNAME)/static/libjli.a
  92 
  93   ifeq ($(SYSTEM_ZLIB),true)
  94     OTHER_LDLIBS += -lz
  95   endif
  96 endif
  97 
  98 ifneq (,$(findstring $(PLATFORM), linux solaris)) # UNIX systems
  99   LDFLAGS += -L $(LIBDIR)/$(LIBARCH)/jli
 100   OTHER_LDLIBS += -ljli
 101   ifeq ($(PLATFORM), solaris)
 102     ifeq ($(ARCH_DATA_MODEL), 32)
 103       LDFLAGS += -R \$$ORIGIN/../lib/$(LIBARCH)/jli
 104       LDFLAGS += -R \$$ORIGIN/../jre/lib/$(LIBARCH)/jli
 105     else
 106       LDFLAGS += -R \$$ORIGIN/../../lib/$(LIBARCH)/jli
 107       LDFLAGS += -R \$$ORIGIN/../../jre/lib/$(LIBARCH)/jli
 108     endif
 109   endif
 110   ifeq ($(PLATFORM), linux)
 111     LDFLAGS += $(LDFLAG_Z_ORIGIN)
 112     LDFLAGS += -Wl,--allow-shlib-undefined
 113     LDFLAGS += -Wl,-rpath -Wl,\$$ORIGIN/../lib/$(LIBARCH)/jli
 114     LDFLAGS += -Wl,-rpath -Wl,\$$ORIGIN/../jre/lib/$(LIBARCH)/jli




  74 ifdef NEVER_ACT_AS_SERVER_CLASS_MACHINE
  75   OTHER_CPPFLAGS += -DNEVER_ACT_AS_SERVER_CLASS_MACHINE
  76 endif
  77 
  78 #
  79 # Create a dependency on libjli (Java Launcher Infrastructure)
  80 #
  81 # On UNIX, this is a relative dependency using $ORIGIN. Unfortunately, to
  82 # do this reliably on Linux takes a different syntax than Solaris.
  83 #
  84 # On Windows, this is done by using the same directory as the executable
  85 # itself, as with all the Windows libraries.
  86 #
  87 ifeq ($(PLATFORM), macosx)
  88   ifneq ($(ARCH), universal)
  89     LDFLAGS += -Wl,-all_load
  90   endif
  91   LDFLAGS += $(OUTPUTDIR)/tmp/java/jli/$(OBJDIRNAME)/static/libjli.a
  92 
  93   ifeq ($(SYSTEM_ZLIB),true)
  94     OTHER_LDLIBS += $(ZLIB_LIBS)
  95   endif
  96 endif
  97 
  98 ifneq (,$(findstring $(PLATFORM), linux solaris)) # UNIX systems
  99   LDFLAGS += -L $(LIBDIR)/$(LIBARCH)/jli
 100   OTHER_LDLIBS += -ljli
 101   ifeq ($(PLATFORM), solaris)
 102     ifeq ($(ARCH_DATA_MODEL), 32)
 103       LDFLAGS += -R \$$ORIGIN/../lib/$(LIBARCH)/jli
 104       LDFLAGS += -R \$$ORIGIN/../jre/lib/$(LIBARCH)/jli
 105     else
 106       LDFLAGS += -R \$$ORIGIN/../../lib/$(LIBARCH)/jli
 107       LDFLAGS += -R \$$ORIGIN/../../jre/lib/$(LIBARCH)/jli
 108     endif
 109   endif
 110   ifeq ($(PLATFORM), linux)
 111     LDFLAGS += $(LDFLAG_Z_ORIGIN)
 112     LDFLAGS += -Wl,--allow-shlib-undefined
 113     LDFLAGS += -Wl,-rpath -Wl,\$$ORIGIN/../lib/$(LIBARCH)/jli
 114     LDFLAGS += -Wl,-rpath -Wl,\$$ORIGIN/../jre/lib/$(LIBARCH)/jli