Projects
Multimedia
dvswitch-git
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 7
View file
dvswitch-git.spec
Changed
@@ -50,6 +50,7 @@ Source111: dv-upload.sh Source112: dvsource-firewire2switch ## end of unused sources. +Patch0: dvswitch.cxxflags.patch ## unused patches. They are included in the susedevel branch of github.com/jnweiger/dvswitch Patch1: dvsource-command.diff Patch2: retry_connect_option.diff @@ -164,6 +165,7 @@ %prep %setup -q -n %{tarname} -a 5 +%patch0 -p1 # # dvsource-command.diff # % patch1 -p1 # # retry_connect_option.diff @@ -194,8 +196,10 @@ %build +export CFLAGS="%{optflags}" +export CXXFLAGS="%{optflags}" cmake -Dprefix=/usr -make +make VERBOSE=1 %check # these are all unused. pulled below directly from the tar
View file
dvswitch.cxxflags.patch
Added
@@ -0,0 +1,13 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -78,8 +78,8 @@ set(mandir ${sharedir}/man + # Some modules require this + set(CMAKE_INSTALL_PREFIX "${prefix}" CACHE INTERNAL "") + +-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall -Wextra") +-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++98 -Wall -Wextra") ++set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99") ++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11") + add_definitions(-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_POSIX_C_SOURCE) + include_directories(src) +
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.