[lazarus] Lazarus how-to 0.2

Michael Anthon mca at tams.com.au
Fri May 14 10:51:10 EDT 1999


Here's a simple patch to makefile.fpc that gets rid of comment lines in
ld.so.conf when building a list of library directories for the compiler.

Cheers
Michael

____________________________________________________________________________
--- makefile.fpc.orig   Sat May 15 00:46:06 1999
+++ makefile.fpc        Sat May 15 00:50:32 1999
@@ -15,7 +15,6 @@
 #####################################################################
 # Force default settings
 #####################################################################
-
 # Latest release version
 override RELEASEVER:=0.99.11

@@ -355,7 +354,7 @@
 GCCLIBDIR:=$(shell dirname `(gcc -v 2>&1)| head -n 1| awk '{ print $$4
} '`)
 endif
 ifndef OTHERLIBDIR
-OTHERLIBDIR:=$(shell cat /etc/ld.so.conf | awk '{ ORS=" "; print $1 }')
+OTHERLIBDIR:=$(shell grep -v "^\#" /etc/ld.so.conf | awk '{ ORS=" ";
print $1 }')
 endif
 endif






More information about the Lazarus mailing list