diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2011-10-06 11:14:05 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2011-10-06 11:15:40 +0300 |
commit | d9932aa63ce12ad0eed3569256933498d7943b8a (patch) | |
tree | 31056a206ee6bc2daecee19cb22956254fb469d7 /build/parseSpec.c | |
parent | 6c7b53b108b24d831b6f8b9d3260eae52d38ebb9 (diff) | |
download | librpm-tizen-d9932aa63ce12ad0eed3569256933498d7943b8a.tar.gz librpm-tizen-d9932aa63ce12ad0eed3569256933498d7943b8a.tar.bz2 librpm-tizen-d9932aa63ce12ad0eed3569256933498d7943b8a.zip |
Also add RPMTAG_OPTFLAGS during spec parse since we easily can...
Diffstat (limited to 'build/parseSpec.c')
-rw-r--r-- | build/parseSpec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/build/parseSpec.c b/build/parseSpec.c index 78fb08915..abaf76218 100644 --- a/build/parseSpec.c +++ b/build/parseSpec.c @@ -538,6 +538,7 @@ static void addTargets(Package Pkgs) char *platform = rpmExpand("%{_target_platform}", NULL); char *arch = rpmExpand("%{_target_cpu}", NULL); char *os = rpmExpand("%{_target_os}", NULL); + char *optflags = rpmExpand("%{optflags}", NULL); for (Package pkg = Pkgs; pkg != NULL; pkg = pkg->next) { headerPutString(pkg->header, RPMTAG_OS, os); @@ -546,6 +547,7 @@ static void addTargets(Package Pkgs) headerPutString(pkg->header, RPMTAG_ARCH, arch); } headerPutString(pkg->header, RPMTAG_PLATFORM, platform); + headerPutString(pkg->header, RPMTAG_OPTFLAGS, optflags); pkg->ds = rpmdsThis(pkg->header, RPMTAG_REQUIRENAME, RPMSENSE_EQUAL); addPackageProvides(pkg->header); @@ -553,6 +555,7 @@ static void addTargets(Package Pkgs) free(platform); free(arch); free(os); + free(optflags); } static rpmSpec parseSpec(const char *specFile, rpmSpecFlags flags, |