Fix build flags

OBS-URL: https://build.opensuse.org/package/show/games/0ad?expand=0&rev=31
This commit is contained in:
Philip Taylor 2011-12-23 20:39:58 +00:00 committed by Git OBS Bridge
parent 41f3865f99
commit d12a4fd861
2 changed files with 4 additions and 4 deletions

View File

@ -94,9 +94,9 @@ history.
%build %build
export CFLAGS="%{optflags}" export CFLAGS="%{optflags}"
export CPPFLAGS="%{optflags}" export CPPFLAGS="%{optflags}"
build/workspaces/update-workspaces.sh --verbose --bindir %{_bindir} --datadir %{_datadir}/%{name} --libdir %{_libdir}/%{name} --with-system-enet build/workspaces/update-workspaces.sh --bindir %{_bindir} --datadir %{_datadir}/%{name} --libdir %{_libdir}/%{name} --with-system-enet
pushd build/workspaces/gcc pushd build/workspaces/gcc
%__make CONFIG=Release %{?_smp_mflags} %__make verbose=1 %{?_smp_mflags}
popd popd

View File

@ -26,14 +26,14 @@ build-stamp: config-stamp
dh_testdir dh_testdir
# Add here commands to compile the package. # Add here commands to compile the package.
build/workspaces/update-workspaces.sh --verbose --bindir /usr/games --datadir /usr/share/games/0ad --libdir /usr/lib/games/0ad --with-system-enet build/workspaces/update-workspaces.sh --bindir /usr/games --datadir /usr/share/games/0ad --libdir /usr/lib/games/0ad --with-system-enet
# NUMJOBS=1 # NUMJOBS=1
# ifneq ("",$(filter parallel=%,$(DEB_BUILD_OPTIONS))) # ifneq ("",$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
# NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) # NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
# endif # endif
# $(MAKE) -j$(NUMJOBS) -C build/workspaces/gcc # $(MAKE) -j$(NUMJOBS) -C build/workspaces/gcc
$(MAKE) CONFIG=Release -j2 -C build/workspaces/gcc $(MAKE) verbose=1 -j2 -C build/workspaces/gcc
# Run tests # Run tests
LD_LIBRARY_PATH=binaries/system binaries/system/test -libdir binaries/system LD_LIBRARY_PATH=binaries/system binaries/system/test -libdir binaries/system