Honor CFLAGS and don't use -Wextra (not available on gcc < 4); ok jasper@
This commit is contained in:
parent
275044f428
commit
328f5cd2ab
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.2 2011/08/25 07:11:20 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.3 2011/08/28 16:59:22 naddy Exp $
|
||||
|
||||
COMMENT= the Git library, take 2
|
||||
|
||||
DISTNAME= libgit2-0.14.0
|
||||
REVISION= 0
|
||||
SHARED_LIBS += git2 1.0 # 0.14
|
||||
|
||||
MODULES= devel/cmake
|
||||
|
21
devel/libgit2/libgit2/patches/patch-CMakeLists_txt
Normal file
21
devel/libgit2/libgit2/patches/patch-CMakeLists_txt
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-CMakeLists_txt,v 1.3 2011/08/28 16:59:22 naddy Exp $
|
||||
|
||||
Don't clobber CFLAGS.
|
||||
-Wextra is not available with gcc < 4.
|
||||
|
||||
--- CMakeLists.txt.orig Thu Jul 14 03:26:08 2011
|
||||
+++ CMakeLists.txt Sun Aug 28 18:43:17 2011
|
||||
@@ -53,12 +53,10 @@ IF (MSVC)
|
||||
SET(CMAKE_C_FLAGS_DEBUG "/Od /DEBUG /MTd")
|
||||
SET(CMAKE_C_FLAGS_RELEASE "/MT /O2")
|
||||
ELSE ()
|
||||
- SET(CMAKE_C_FLAGS "-Wall -Wextra")
|
||||
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
|
||||
IF (NOT MINGW) # MinGW always does PIC and complains if we tell it to
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
|
||||
ENDIF ()
|
||||
- SET(CMAKE_C_FLAGS_DEBUG "-g -O0")
|
||||
- SET(CMAKE_C_FLAGS_RELEASE "-O2")
|
||||
ENDIF()
|
||||
|
||||
# Build Debug by default
|
Loading…
Reference in New Issue
Block a user