mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 15:10:02 +00:00
Add a build variable to allow supression of -fvisibility
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
0c01d80a09
commit
8ed341c55e
13
Makefile
13
Makefile
@ -1,15 +1,28 @@
|
||||
all::
|
||||
|
||||
# Define NO_VISIBILITY if your compiler does not support symbol
|
||||
# visibility in general (and the -fvisibility switch in particular).
|
||||
|
||||
DOXYGEN = doxygen
|
||||
RANLIB = ranlib
|
||||
|
||||
prefix=/usr/local
|
||||
|
||||
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo no')
|
||||
|
||||
CFLAGS = -g -O2 -Wall
|
||||
OS = unix
|
||||
|
||||
# Platform specific tweaks
|
||||
|
||||
ifneq (,$(findstring CYGWIN,$(uname_S)))
|
||||
NO_VISIBILITY=YesPlease
|
||||
endif
|
||||
|
||||
BASIC_CFLAGS := -Isrc
|
||||
ifndef NO_VISIBILITY
|
||||
BASIC_CFLAGS += -fvisibility=hidden
|
||||
endif
|
||||
ALL_CFLAGS = $(CFLAGS) $(BASIC_CFLAGS)
|
||||
|
||||
SRC_C = $(wildcard src/*.c)
|
||||
|
Loading…
Reference in New Issue
Block a user