File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
2- # $PostgreSQL: pgsql/src/test/regress/pg_regress.sh,v 1.45 2004/06/03 00:25:47 momjian Exp $
2+ # $PostgreSQL: pgsql/src/test/regress/pg_regress.sh,v 1.46 2004/08/10 22:24:06 tgl Exp $
33
44me=` basename $0 `
55: ${TMPDIR=/ tmp}
328328
329329 # ----------
330330 # Set up shared library paths, needed by psql and pg_encoding
331- # (if you run multibyte). LD_LIBRARY_PATH covers many platforms,
332- # feel free to account for others as well.
331+ # (if you run multibyte). LD_LIBRARY_PATH covers many platforms.
332+ # DYLD_LIBRARY_PATH works on Darwin, and maybe other Mach-based systems.
333+ # Feel free to account for others as well.
333334 # ----------
334335
335336 if [ -n " $LD_LIBRARY_PATH " ]; then
@@ -339,6 +340,13 @@ then
339340 fi
340341 export LD_LIBRARY_PATH
341342
343+ if [ -n " $DYLD_LIBRARY_PATH " ]; then
344+ DYLD_LIBRARY_PATH=" $libdir :$DYLD_LIBRARY_PATH "
345+ else
346+ DYLD_LIBRARY_PATH=$libdir
347+ fi
348+ export DYLD_LIBRARY_PATH
349+
342350 # ----------
343351 # Windows needs shared libraries in PATH. (Only those linked into
344352 # executables, not dlopen'ed ones)
You can’t perform that action at this time.
0 commit comments