Browse Source

provide a more convinient definition for cppflags and ldflags

master
parent
commit
c12789a5af
  1. 4
      openpkg/openpkg.spec
  2. 4
      openpkg/rpmmacros

4
openpkg/openpkg.spec

@ -39,8 +39,8 @@
# o any cc(1)
# the package version and release
%define V_openpkg 20021120
%define R_openpkg 20021120
%define V_openpkg 20021122
%define R_openpkg 20021122
# the used software versions
%define V_rpm 4.0.2

4
openpkg/rpmmacros

@ -161,8 +161,8 @@
# tool options
%l_mflags(O) %(%{l_sane_env}; %{l_rpmtool} flags -m %{-O:-O} %{l_make})
%l_cflags(O) %(%{l_sane_env}; %{l_rpmtool} flags -c %{-O:-O} %{l_cc})
%l_cppflags -I%{l_prefix}/include
%l_ldflags -L%{l_prefix}/lib
%l_cppflags() %(flags="-I%{l_prefix}/include"; for pkg in %*; do flags="$flags -I%{l_prefix}/include/$pkg"; done; echo $flags)
%l_ldflags() %(flags="-L%{l_prefix}/lib"; for pkg in %*; do flags="$flags -L%{l_prefix}/lib/$pkg"; done; echo $flags)
# determine the current username
%l_whoami %((id -un) 2>/dev/null || (whoami) 2>/dev/null || (who am i | cut "-d " -f1) 2>/dev/null || echo $LOGNAME)

Loading…
Cancel
Save