Skip to content

Commit

Permalink
Disable -Werror and use -fPIC to correctly build the package
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Feb 15, 2017
1 parent 19f9af0 commit 9b2ed58
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions package/libyui-gtk.spec
Expand Up @@ -84,8 +84,8 @@ This package has very few dependencies.

%build

export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG -Wno-error=deprecated-declarations"
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG -Wno-error=deprecated-declarations"
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG -Wno-error=deprecated-declarations -fPIC"
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG -Wno-error=deprecated-declarations -fPIC"

./bootstrap.sh %{_prefix}

Expand All @@ -97,12 +97,14 @@ cmake .. \
-DPREFIX=%{_prefix} \
-DDOC_DIR=%{_docdir} \
-DLIB_DIR=%{_lib} \
-DENABLE_WERROR=OFF \
-DCMAKE_BUILD_TYPE=RELWITHDEBINFO
%else
cmake .. \
-DPREFIX=%{_prefix} \
-DDOC_DIR=%{_docdir} \
-DLIB_DIR=%{_lib} \
-DENABLE_WERROR=OFF \
-DCMAKE_BUILD_TYPE=RELEASE
%endif

Expand Down

0 comments on commit 9b2ed58

Please sign in to comment.