jdk/make/common/Program.gmk

Print this page




  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
 115   endif
 116 endif
 117 
 118 ifeq ($(PLATFORM), windows)
 119   JLI_LCF = $(OUTPUTDIR)/tmp/java/jli/$(OBJDIRNAME)/jli.lcf
 120   ifdef STATIC_JLI
 121     LDFLAGS += -libpath:$(OUTPUTDIR)/tmp/java/jli/$(OBJDIRNAME)/static
 122   else
 123     LDFLAGS += -libpath:$(OUTPUTDIR)/tmp/java/jli/$(OBJDIRNAME)
 124   endif
 125   OTHER_LDLIBS += jli.lib
 126 endif
 127 
 128 #
 129 # Launcher specific files.




  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     ## Temporarily remove for Modules Solaris 64bit only build
 103     #ifeq ($(ARCH_DATA_MODEL), 32)
 104       LDFLAGS += -R \$$ORIGIN/../lib/$(LIBARCH)/jli
 105       LDFLAGS += -R \$$ORIGIN/../jre/lib/$(LIBARCH)/jli
 106     #else
 107     #  LDFLAGS += -R \$$ORIGIN/../../lib/$(LIBARCH)/jli
 108     #  LDFLAGS += -R \$$ORIGIN/../../lib/$(LIBARCH)/jli
 109     #endif
 110   endif

 111   ifeq ($(PLATFORM), linux)
 112     LDFLAGS += $(LDFLAG_Z_ORIGIN)
 113     LDFLAGS += -Wl,--allow-shlib-undefined
 114     LDFLAGS += -Wl,-rpath -Wl,\$$ORIGIN/../lib/$(LIBARCH)/jli
 115     LDFLAGS += -Wl,-rpath -Wl,\$$ORIGIN/../jre/lib/$(LIBARCH)/jli
 116   endif
 117 endif
 118 
 119 ifeq ($(PLATFORM), windows)
 120   JLI_LCF = $(OUTPUTDIR)/tmp/java/jli/$(OBJDIRNAME)/jli.lcf
 121   ifdef STATIC_JLI
 122     LDFLAGS += -libpath:$(OUTPUTDIR)/tmp/java/jli/$(OBJDIRNAME)/static
 123   else
 124     LDFLAGS += -libpath:$(OUTPUTDIR)/tmp/java/jli/$(OBJDIRNAME)
 125   endif
 126   OTHER_LDLIBS += jli.lib
 127 endif
 128 
 129 #
 130 # Launcher specific files.