File fxpackager-native.xml of Package openjfx8

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<name>fxpackager</name>
	<packaging>uexe</packaging>
	<artifactId>JavaAppLauncher</artifactId>
	<groupId>org.openjfx</groupId>
	<version>@RELEASE_VERSION@</version>
	<properties>
		<commonCompilerOptions>-fstack-protector -DJAVAARCH="${build.java.arch}"</commonCompilerOptions>
		<native.source.dir>../src/main/native/launcher/linux</native.source.dir>
	</properties>
	<build>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>native-maven-plugin</artifactId>
				<extensions>true</extensions>
				<configuration>
				    <compilerExecutable>g++</compilerExecutable>
					<compilerStartOptions>
						<compilerStartOption>${commonCompilerOptions}</compilerStartOption>
					</compilerStartOptions>
					<sources>
						<source>
							<directory>${native.source.dir}</directory>
							<includes>
								<include>**/*.cpp</include>
						    </includes>
						</source>
						<source>
							<directory>${JAVA_HOME}/include</directory>
						</source>
						<source>
							<directory>${JAVA_HOME}/include/linux</directory>
						</source>
					</sources>
					<linkerExecutable>g++</linkerExecutable>
					<linkerStartOptions>
						<linkerStartOption>-static-libgcc</linkerStartOption>
						<linkerStartOption>-static-libstdc++</linkerStartOption>
						<linkerStartOption>-Wl,--gc-sections</linkerStartOption>
						<linkerStartOption>-z</linkerStartOption>
						<linkerStartOption>relro</linkerStartOption>
					</linkerStartOptions>
					<linkerEndOptions>
						<linkerEndOption>-lstdc++</linkerEndOption>
						<linkerEndOption>-ldl</linkerEndOption>
						<linkerEndOption>-lpthread</linkerEndOption>
					</linkerEndOptions>
				</configuration>
			</plugin>
		</plugins>
	</build>

</project>
openSUSE Build Service is sponsored by