File: ldflags

package info (click to toggle)
postgresql-q3c 2.0.0-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,340 kB
  • sloc: sql: 26,253; ansic: 3,924; python: 110; perl: 104; makefile: 85; sh: 3
file content (19 lines) | stat: -rw-r--r-- 545 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Remove PG_LIBS from prepare linking

--- a/Makefile
+++ b/Makefile
@@ -24,13 +24,7 @@ PGXS := $(shell $(PG_CONFIG) --pgxs)
 include $(PGXS)
 PGVERNEW := $(shell if [ $(MAJORVERSION) -ge 12 ] ; then echo N ; else echo O ; fi )
 
-ifeq ($(PGVERNEW), N)
-	PG_LIBS += -L$(shell $(PG_CONFIG) --pkglibdir)
-	LIBS := $(filter-out -lpam -lxml2 -lxslt -lselinux -ledit, $(LIBS))
-	MYBINLIBS := $(LIBS) $(PG_LIBS) -lm
-else
-	MYBINLIBS := $(PG_LIBS) -lm
-endif
+MYBINLIBS := -L$(shell $(PG_CONFIG) --pkglibdir) -lpgport -lm
 
 dump.c: prepare
 	./prepare