Skip to content

Commit d808a80

Browse files
committed
irteus/Makefile: check if /usr/lib/$(shell $(CC) -dumpmachine)/libpq.so exists, to compile pgsql.l
1 parent 908a594 commit d808a80

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

irteus/Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ endif
8888
MODULES.L=irt_modules.l
8989
EUSLIB_MODULES.L=$(addprefix $(EUSDIR)/lib/,$(MODULES.L))
9090

91-
IRTEUS=irtmath irtutil irtgraph gnuplotlib pgsql time
91+
IRTEUS=irtmath irtutil irtgraph gnuplotlib time
92+
ifneq (,$(wildcard /usr/lib/$(shell $(CC) -dumpmachine)/libpq.so)) # if /usr/lib/x86_64-linux-gnu/libpq.so exists, use pgsql
93+
IRTEUS+=pgsql
94+
endif
9295
IRTEUSG=irtgeo pqp bullet irtcollision irtscene irtmodel irtsensor irtdyna irtrobot irtbvh irtcollada irtpointcloud irtstl irtwrl
9396
IRTEUSX=irtx
9497
IRTEUSIMG=irtimage

0 commit comments

Comments
 (0)