mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-21 20:38:45 +00:00
PostGreSQL 7.1 can install in two places, either ${PREFIX} (hier(7)) or
${PREFIX}/pgsql (old layout). Adjust compiler flags so that headers and libraries are found in either case. PR: ports/26756 Submitted by: Palle Girgensohn <girgen@partitur.se>
This commit is contained in:
parent
5306c9a613
commit
6b71d907b1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=41893
@ -15,12 +15,12 @@ clean:
|
||||
|
||||
_pgmodule.so: pgmodule.o
|
||||
${LD} -Bshareable -lc_r -L${PYTHON_LIBDIR}/config \
|
||||
-l${PYTHON_VERSION} -L${PREFIX}/lib -lpq \
|
||||
-l${PYTHON_VERSION} -L${PREFIX}/lib -L${PREFIX}/pgsql/lib -lpq \
|
||||
${.ALLSRC} -o ${.TARGET}
|
||||
|
||||
pgmodule.o: pgmodule.c
|
||||
${CC} -c -I${PREFIX}/include/${PYTHON_VERSION} \
|
||||
-I${PREFIX}/include/pgsql ${.ALLSRC}
|
||||
-I${PREFIX}/include/pgsql -I${PREFIX}/pgsql/include ${.ALLSRC}
|
||||
|
||||
.py.pyc:
|
||||
${SETENV} PYTHONPATH=${.CURDIR} ${PYTHON} -c 'import ${.IMPSRC:.py=}'
|
||||
|
Loading…
Reference in New Issue
Block a user