aboutsummaryrefslogtreecommitdiffstats
path: root/make/build-nativewindow.xml
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-03-30 01:27:37 +0100
committerSven Gothel <[email protected]>2019-03-30 01:27:37 +0100
commitb83a912f19685e81b71c950914f0f82cc0e534bf (patch)
tree8857b151d3af9fe533d995bc8bc3224d0821bf40 /make/build-nativewindow.xml
parentec4721c5b81ca39355f660294bf45edc0a1584da (diff)
Bug 1316: MacOSX: Keep *.dylib (Don't move to *.jnilib)
Since Java8 (or even earlier), JRE on OSX uses *.dylib native library suffix instead of *.jnilib when automatically searching and loading them. This is not easily being recognized by JogAmp, since we explicitly name the native libraries with full path when testing with our TempJarCache.
Diffstat (limited to 'make/build-nativewindow.xml')
-rw-r--r--make/build-nativewindow.xml15
1 files changed, 2 insertions, 13 deletions
diff --git a/make/build-nativewindow.xml b/make/build-nativewindow.xml
index b4d7858a7..551f92ac8 100644
--- a/make/build-nativewindow.xml
+++ b/make/build-nativewindow.xml
@@ -616,10 +616,6 @@
<move file="${src}" tofile="${dest}" />
</target>
- <target name="rename.dylib" if="isOSX">
- <move file="${src}" tofile="${dest}" />
- </target>
-
<macrodef name="c.build">
<attribute name="c.compiler.src.files" />
<attribute name="compiler.cfg.id" />
@@ -688,7 +684,7 @@
<targetfiles>
<fileset dir="${obj.nativewindow}" includes="lib@{output.lib.name}.so"/>
<fileset dir="${obj.nativewindow}" includes="@{output.lib.name}.dll"/>
- <fileset dir="${obj.nativewindow}" includes="lib@{output.lib.name}.jnilib"/>
+ <fileset dir="${obj.nativewindow}" includes="lib@{output.lib.name}.dylib"/>
</targetfiles>
<sequential>
<cc outtype="shared"
@@ -728,14 +724,7 @@
</cc>
<!-- FIXME: this is a hack; the cpptask should have an option to change the
- suffix or at least understand the override from dylib to jnilib -->
- <antcall target="rename.dylib" inheritRefs="true">
- <param name="src" value="${obj.nativewindow}/lib@{output.lib.name}.dylib" />
- <param name="dest" value="${obj.nativewindow}/lib@{output.lib.name}.jnilib" />
- </antcall>
-
- <!-- FIXME: this is a hack; the cpptask should have an option to change the
- suffix or at least understand the override from dylib to jnilib -->
+ suffix or at least understand the override from so to dll -->
<antcall target="rename.mingw.dll" inheritRefs="true">
<param name="src" value="${obj.nativewindow}/lib@{output.lib.name}.so" />
<param name="dest" value="${obj.nativewindow}/@{output.lib.name}.dll" />