media-sound/tuxguitar: Only call append-flags once to avoid duplicates
authorJames Le Cuirot <chewi@gentoo.org>
Mon, 29 Aug 2016 21:30:00 +0000 (22:30 +0100)
committerJames Le Cuirot <chewi@gentoo.org>
Mon, 29 Aug 2016 21:30:43 +0000 (22:30 +0100)
Package-Manager: portage-2.3.0

media-sound/tuxguitar/tuxguitar-1.3.2.ebuild

index 001b67cc0c2d5b4372729e2c1ba27d554796132a..fe46d5c4a8fc703ec974b3fff47024fe512f00b3 100644 (file)
@@ -65,11 +65,12 @@ src_compile() {
        local build_order=( ${LIBRARY_LIST[@]} ${PLUGIN_LIST[@]/#/TuxGuitar-} )
        local directory
 
+       append-flags -fPIC $(java-pkg_get-jni-cflags)
+
        for directory in ${build_order[@]}; do
                cd "${S}"/${directory} || die "cd ${directory} failed"
                eant
                if [[ -d jni ]]; then
-                       append-flags -fPIC $(java-pkg_get-jni-cflags)
                        CC=$(tc-getCC) emake -C jni
                fi
        done