Skip to content

Commit

Permalink
rely on MAJORVERSION variable from the makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Koposov committed Jan 11, 2020
1 parent af38215 commit 8d1993f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ CPPFLAGS = $(CPPFLAGS) -D$(Q3CVERSION)

PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
PGVER := $(shell echo $(VERSION) | sed "s/^\([^\.]\+\)\..*/\1/" )
PGVERNEW := $(shell if [ $(PGVER) -ge 12 ] ; then echo N ; else echo O ; fi )
PGVERNEW := $(shell if [ $(MAJORVERSION) -ge 12 ] ; then echo N ; else echo O ; fi )

ifeq ($(PGVERNEW), N)
PG_LIBS += -L$(shell $(PG_CONFIG) --pkglibdir)
Expand Down

0 comments on commit 8d1993f

Please sign in to comment.