Skip to content

Commit

Permalink
fix some build complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
nephros committed Nov 23, 2021
1 parent 69ddc89 commit 10a30c3
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions rpm/jq.spec
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Patch0: jq-1.6-r3-never-bundle-oniguruma.patch
Patch1: jq-1.6-runpath.patch
Patch2: jq-1.6-segfault-fix.patch
Patch3: jq-1.6-warnings.patch
BuildRequires: gcc flex bison libtool autoconf
BuildRequires: pkgconfig(oniguruma)
BuildRequires: git-core
BuildRequires: pkgconfig(oniguruma)
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig

Expand All @@ -39,16 +39,21 @@ This package provides headers for development
%patch1 -p1
# jq-1.6-segfault-fix.patch
%patch2 -p1
%build
autoreconf -fi
# jq-1.6-warnings.patch
%patch3 -p1

%build
CFLAGS="$CFLAGS -fPIC"
CXXFLAGS="$CXXFLAGS -fPIC"

autoreconf -fi

%configure --disable-static \
--enable-silent-rules \
--disable-maintainer-mode \
--enable-devel \
--disable-valgrind \
--disable-docs \
--disable-docs

%{__make} %{?_smp_mflags}

Expand Down Expand Up @@ -83,7 +88,8 @@ rm -rf %{buildroot}%{_mandir}

%changelog
* Mon Nov 22 2021 nephros <[email protected]> - 1.6-2
- disable static build- remove libs
- disable static build - remove libs

* Mon Nov 22 2021 nephros <[email protected]> - 1.6-1
- version bump
- do not use packaged oniguruma library
Expand Down

0 comments on commit 10a30c3

Please sign in to comment.