Accepting request 632353 from home:Guillaume_G:branches:openSUSE:Factory:ARM
- Fix build on non X86* platforms OBS-URL: https://build.opensuse.org/request/show/632353 OBS-URL: https://build.opensuse.org/package/show/devel:tools/afl?expand=0&rev=92
This commit is contained in:
parent
397023c914
commit
74a803cbc5
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 30 15:03:49 UTC 2018 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Fix build on non X86* platforms
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 5 07:57:53 UTC 2017 - mardnh@gmx.de
|
||||
|
||||
|
9
afl.spec
9
afl.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package afl
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -27,7 +27,6 @@ Source: http://lcamtuf.coredump.cx/afl/releases/%{name}-%{version}.tgz
|
||||
Source1: afl-rpmlintrc
|
||||
Patch1: afl-1.58b-fix-paths.patch
|
||||
BuildRequires: gcc-c++
|
||||
ExclusiveArch: i586 x86_64
|
||||
|
||||
%description
|
||||
American fuzzy lop is a security-oriented fuzzer that employs a novel type
|
||||
@ -51,9 +50,15 @@ sed -i 's|#!/usr/bin/env bash|#!/bin/bash|g' afl-cmin
|
||||
|
||||
%build
|
||||
export CFLAGS="$CFLAGS %{optflags}"
|
||||
%ifnarch %{ix86} x86_64
|
||||
export AFL_NO_X86=1
|
||||
%endif
|
||||
make %{?_smp_mflags} PREFIX=%{_prefix} LIBEXEC_DIR=%{_libexecdir} DOC_DIR=%{_docdir}
|
||||
|
||||
%install
|
||||
%ifnarch %{ix86} x86_64
|
||||
export AFL_NO_X86=1
|
||||
%endif
|
||||
make %{?_smp_mflags} PREFIX=%{_prefix} LIBEXEC_DIR=%{_libexecdir} DOC_DIR=%{_docdir} DESTDIR=%{buildroot} install
|
||||
|
||||
%files
|
||||
|
Loading…
x
Reference in New Issue
Block a user