d125f84607
Joint work with uwe@ and grunk@. ok matthieu@ (MAINTAINER)
46 lines
1.2 KiB
Plaintext
46 lines
1.2 KiB
Plaintext
$OpenBSD: patch-Makefile,v 1.5 2007/04/13 10:19:45 bernd Exp $
|
|
--- Makefile.orig Sun Mar 18 23:08:11 2007
|
|
+++ Makefile Tue Apr 3 16:01:33 2007
|
|
@@ -121,13 +121,13 @@ uname_P := $(shell sh -c 'uname -p 2>/dev/null || echo
|
|
|
|
# CFLAGS and LDFLAGS are for the users to override from the command line.
|
|
|
|
-CFLAGS = -g -O2 -Wall
|
|
+CFLAGS ?= -g -O2 -Wall
|
|
LDFLAGS =
|
|
ALL_CFLAGS = $(CFLAGS)
|
|
ALL_LDFLAGS = $(LDFLAGS)
|
|
STRIP ?= strip
|
|
|
|
-prefix = $(HOME)
|
|
+#prefix = $(HOME)
|
|
bindir = $(prefix)/bin
|
|
gitexecdir = $(bindir)
|
|
template_dir = $(prefix)/share/git-core/templates/
|
|
@@ -151,7 +151,7 @@ GITWEB_SITE_FOOTER =
|
|
|
|
export prefix bindir gitexecdir template_dir
|
|
|
|
-CC = gcc
|
|
+CC ?= gcc
|
|
AR = ar
|
|
TAR = tar
|
|
INSTALL = install
|
|
@@ -393,7 +393,6 @@ ifeq ($(uname_S),FreeBSD)
|
|
BASIC_LDFLAGS += -L/usr/local/lib
|
|
endif
|
|
ifeq ($(uname_S),OpenBSD)
|
|
- NO_STRCASESTR = YesPlease
|
|
NEEDS_LIBICONV = YesPlease
|
|
BASIC_CFLAGS += -I/usr/local/include
|
|
BASIC_LDFLAGS += -L/usr/local/lib
|
|
@@ -473,7 +472,7 @@ ifndef NO_CURL
|
|
endif
|
|
|
|
ifndef NO_OPENSSL
|
|
- OPENSSL_LIBSSL = -lssl
|
|
+ OPENSSL_LIBSSL = -lssl -lcrypto
|
|
ifdef OPENSSLDIR
|
|
BASIC_CFLAGS += -I$(OPENSSLDIR)/include
|
|
OPENSSL_LINK = -L$(OPENSSLDIR)/lib $(CC_LD_DYNPATH)$(OPENSSLDIR)/lib
|