diff options
author | Sven Gothel <[email protected]> | 2010-05-16 20:00:42 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-05-16 20:00:42 +0200 |
commit | 7f407a63b564bcc7d24d0904da64be14ef43047d (patch) | |
tree | 64ec44b53f6d665618ecb1ac729121da62109a7e /make/gluegen-cpptasks-base.xml | |
parent | d9eab742a93a407417661368821f24b1ee4e84e1 (diff) |
GlueGen/JOGL Windows x86 x86_64 MingW Builds
mingw linker option: --enable-stdcall-fixup
mingw x86: link against JVM lib file, due to unresolved symbol:
JAWT.dll x32: _JAWT_GetAWT@8 (stdcall)
JAWT.dll x64: JAWT_GetAWT (clean)
Looks like the stdcall fixup doesn't work ..
Diffstat (limited to 'make/gluegen-cpptasks-base.xml')
-rwxr-xr-x | make/gluegen-cpptasks-base.xml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/make/gluegen-cpptasks-base.xml b/make/gluegen-cpptasks-base.xml index 1f12008..dd366fe 100755 --- a/make/gluegen-cpptasks-base.xml +++ b/make/gluegen-cpptasks-base.xml @@ -706,13 +706,15 @@ --> <linker id="linker.cfg.win32.mingw" name="gcc" incremental="false"> <linkerarg value="-m32"/> - <linkerarg value="--enable-auto-import"/> <!-- link against dll directly (not lib)--> + <linkerarg value="-Wl,--enable-auto-import"/> <!-- for linking against dll directly --> + <linkerarg value="-Wl,--enable-stdcall-fixup"/> <!-- for linking against dll directly --> <linkerarg value="-Wl,--kill-at" /> <!-- remove @ from function names, ie no __stdcall @nn --> </linker> <linker id="linker.cfg.win64.mingw" name="gcc" incremental="false"> <linkerarg value="-m64"/> - <linkerarg value="--enable-auto-import"/> <!-- link against dll directly (not lib)--> + <linkerarg value="-Wl,--enable-auto-import"/> <!-- for linking against dll directly --> + <linkerarg value="-Wl,--enable-stdcall-fixup"/> <!-- for linking against dll directly --> <linkerarg value="-Wl,--kill-at" /> <!-- remove @ from function names, ie no __stdcall @nn --> </linker> @@ -779,7 +781,6 @@ <echo message="Win32.MingW" /> <property name="compiler.cfg.id.base" value="compiler.cfg.win32.mingw" /> <property name="linker.cfg.id.base" value="linker.cfg.win32.mingw" /> - <property name="java.lib.dir.platform" value="${java.home.dir}/jre/bin" /> <!-- link against dll directly (not lib)--> </target> <target name="gluegen.cpptasks.declare.compiler.win64.mingw" if="isMingW64"> |