]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- pass whole target_platform
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 23 Feb 2007 20:35:12 +0000 (20:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.480

builder.sh

index c30061aa15bfeb580078838747a820f9d57f41e6..3e4fb19195505b74f9a293a01af8bfa5dcd10a40 100644 (file)
@@ -353,10 +353,11 @@ set_spec_target() {
        if [ -n "$SPECFILE" ] && [ -z "$TARGET" ]; then
                tmp=$(awk '/^BuildArch:/ { print $NF}' $SPECFILE)
                if [ "$tmp" ]; then
+                               target_platform=$(rpm -E '%{_target_vendor}-%{_target_os}%{?_gnu}')
                                TARGET="$tmp"
                                case "$RPMBUILD" in
                                "rpmbuild")
-                                       TARGET_SWITCH="--target $TARGET" ;;
+                                       TARGET_SWITCH="--target ${TARGET}-${target_platform}" ;;
                                "rpm")
                                        TARGET_SWITCH="--target=$TARGET" ;;
                                esac
This page took 0.039033 seconds and 4 git commands to generate.