8295231: Move all linking of native libraries to make
Reviewed-by: ihse, erikj
This commit is contained in:
parent
f300ec8631
commit
8d751de319
@ -84,7 +84,7 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBNIO, \
|
||||
LIBS_aix := $(LIBDL), \
|
||||
LIBS_macosx := \
|
||||
-framework CoreFoundation -framework CoreServices, \
|
||||
LIBS_windows := jvm.lib ws2_32.lib $(WIN_JAVA_LIB) \
|
||||
LIBS_windows := jvm.lib Mswsock.lib ws2_32.lib $(WIN_JAVA_LIB) \
|
||||
$(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libnet/net.lib \
|
||||
advapi32.lib, \
|
||||
))
|
||||
|
@ -47,7 +47,8 @@ ifeq ($(call isTargetOs, windows), true)
|
||||
CFLAGS := $(CFLAGS_JDKLIB) \
|
||||
-I$(TOPDIR)/src/java.security.jgss/share/native/libj2gss, \
|
||||
LDFLAGS := $(LDFLAGS_JDKLIB) \
|
||||
$(call SET_SHARED_LIBRARY_ORIGIN) \
|
||||
$(call SET_SHARED_LIBRARY_ORIGIN), \
|
||||
LIBS := Secur32.lib, \
|
||||
))
|
||||
|
||||
TARGETS += $(BUILD_LIBSSPI_BRIDGE)
|
||||
|
@ -74,7 +74,8 @@ $(eval $(call SetupJdkExecutable, BUILD_JPACKAGE_APPLAUNCHEREXE, \
|
||||
CFLAGS_windows := $(JPACKAGE_CFLAGS_windows), \
|
||||
LDFLAGS := $(LDFLAGS_JDKEXE), \
|
||||
LIBS_macosx := $(LIBCXX) -framework Cocoa, \
|
||||
LIBS_windows := $(LIBCXX), \
|
||||
LIBS_windows := $(LIBCXX) user32.lib ole32.lib msi.lib shlwapi.lib \
|
||||
Shell32.lib, \
|
||||
LIBS_linux := -ldl, \
|
||||
MANIFEST := $(JAVA_MANIFEST), \
|
||||
MANIFEST_VERSION := $(VERSION_NUMBER_FOUR_POSITIONS) \
|
||||
@ -124,7 +125,8 @@ ifeq ($(call isTargetOs, windows), true)
|
||||
CXXFLAGS := $(CXXFLAGS_JDKLIB) $(JPACKAGE_CXXFLAGS_windows), \
|
||||
LDFLAGS := $(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \
|
||||
$(call SET_SHARED_LIBRARY_ORIGIN), \
|
||||
LIBS := $(LIBCXX), \
|
||||
LIBS := $(LIBCXX) advapi32.lib ole32.lib msi.lib user32.lib \
|
||||
shlwapi.lib Shell32.lib, \
|
||||
))
|
||||
|
||||
JPACKAGE_TARGETS += $(BUILD_LIB_JPACKAGE)
|
||||
@ -144,8 +146,8 @@ ifeq ($(call isTargetOs, windows), true)
|
||||
CXXFLAGS := $(call JpackageWithStaticCrt, $(CXXFLAGS_JDKLIB)) \
|
||||
$(addprefix -I, $(JPACKAGE_WIXHELPER_SRC)) $(JPACKAGE_CXXFLAGS_windows), \
|
||||
LDFLAGS := $(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK), \
|
||||
LIBS := $(LIBCXX), \
|
||||
LIBS_windows := User32.lib, \
|
||||
LIBS := $(LIBCXX) ole32.lib msi.lib User32.lib shlwapi.lib \
|
||||
Shell32.lib, \
|
||||
))
|
||||
|
||||
JPACKAGE_TARGETS += $(BUILD_LIB_WIXHELPER)
|
||||
@ -163,7 +165,7 @@ ifeq ($(call isTargetOs, windows), true)
|
||||
CXXFLAGS := $(call JpackageWithStaticCrt, $(CXXFLAGS_JDKEXE)) \
|
||||
$(addprefix -I, $(JPACKAGE_MSIWRAPPER_SRC)) $(JPACKAGE_CXXFLAGS_windows), \
|
||||
LDFLAGS := $(LDFLAGS_JDKEXE), \
|
||||
LIBS := $(LIBCXX), \
|
||||
LIBS := $(LIBCXX) ole32.lib msi.lib user32.lib shlwapi.lib Shell32.lib, \
|
||||
))
|
||||
|
||||
JPACKAGE_TARGETS += $(BUILD_JPACKAGE_MSIWRAPPER)
|
||||
|
@ -34,8 +34,7 @@
|
||||
#include "java_lang_Integer.h"
|
||||
#include "sun_nio_ch_FileDispatcherImpl.h"
|
||||
|
||||
#include <Mswsock.h>
|
||||
#pragma comment(lib, "Mswsock.lib")
|
||||
#include <Mswsock.h> // Requires Mswsock.lib
|
||||
|
||||
/**************************************************************
|
||||
* FileDispatcherImpl.c
|
||||
|
@ -47,8 +47,6 @@
|
||||
#define SECURITY_WIN32
|
||||
#include <sspi.h>
|
||||
|
||||
#pragma comment(lib, "secur32.lib")
|
||||
|
||||
// Otherwise an exception will be thrown
|
||||
#define new new (std::nothrow)
|
||||
|
||||
|
@ -42,8 +42,7 @@
|
||||
#include "WinErrorHandling.h"
|
||||
|
||||
|
||||
// AllowSetForegroundWindow
|
||||
#pragma comment(lib, "user32")
|
||||
// AllowSetForegroundWindow - Requires linking with user32
|
||||
|
||||
|
||||
namespace {
|
||||
|
@ -30,7 +30,7 @@
|
||||
#include "ErrorHandling.h"
|
||||
|
||||
|
||||
#pragma comment(lib, "ole32")
|
||||
// Code in this file requires linking with ole32
|
||||
|
||||
|
||||
Guid::Guid(const std::string& str) {
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include "Toolbox.h"
|
||||
|
||||
|
||||
#pragma comment(lib, "msi.lib")
|
||||
// Code in this file requires linking with msi.lib
|
||||
|
||||
|
||||
namespace msi {
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include "Log.h"
|
||||
|
||||
|
||||
#pragma comment(lib, "msi.lib")
|
||||
// Code in this file requires linking with msi.lib
|
||||
|
||||
|
||||
namespace msi {
|
||||
|
@ -32,7 +32,7 @@
|
||||
#include "WinErrorHandling.h"
|
||||
|
||||
|
||||
#pragma comment(lib, "msi.lib")
|
||||
// Code in this file requires linking with msi.lib
|
||||
|
||||
|
||||
namespace msi {
|
||||
|
@ -31,8 +31,7 @@
|
||||
#include "ErrorHandling.h"
|
||||
|
||||
|
||||
// MessageBox
|
||||
#pragma comment(lib, "user32")
|
||||
// MessageBox - Requires linking with user32
|
||||
|
||||
|
||||
namespace {
|
||||
|
@ -35,8 +35,7 @@
|
||||
#include "Log.h"
|
||||
|
||||
|
||||
// Needed by FileUtils::isDirectoryNotEmpty
|
||||
#pragma comment(lib, "shlwapi")
|
||||
// Needed by FileUtils::isDirectoryNotEmpty - shlwapi
|
||||
|
||||
|
||||
namespace FileUtils {
|
||||
|
@ -30,7 +30,7 @@
|
||||
#include "FileUtils.h"
|
||||
#include "WinErrorHandling.h"
|
||||
|
||||
#pragma comment(lib, "Shell32")
|
||||
// Requires linking with Shell32
|
||||
|
||||
namespace SysInfo {
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include "FileUtils.h"
|
||||
#include "ErrorHandling.h"
|
||||
|
||||
#pragma comment(lib, "advapi32")
|
||||
// Requires linking with advapi32
|
||||
|
||||
namespace {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user