Skip to content

Commit 59dcac1

Browse files
committed
Makefile's -fpic only for gcc
1 parent a0d9bdd commit 59dcac1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/backend/lib/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Makefile for lib (miscellaneous stuff)
55
#
66
# IDENTIFICATION
7-
# $Header: /cvsroot/pgsql/src/backend/lib/Makefile,v 1.4 1997/01/05 23:53:57 scrappy Exp $
7+
# $Header: /cvsroot/pgsql/src/backend/lib/Makefile,v 1.5 1997/01/10 18:19:02 momjian Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -15,7 +15,9 @@ INCLUDE_OPT = -I.. \
1515
-I../port/$(PORTNAME) \
1616
-I../../include
1717

18-
CFLAGS+=$(INCLUDE_OPT) -fpic -DPIC
18+
ifeq ($(CC), gcc)
19+
CFLAGS+=$(INCLUDE_OPT) -fpic -DPIC
20+
endif
1921

2022
OBJS = bit.o fstack.o hasht.o lispsort.o qsort.o stringinfo.o dllist.o
2123

0 commit comments

Comments
 (0)