Code

fix build docs
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 7 Apr 2009 07:23:39 +0000 (07:23 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 7 Apr 2009 07:23:39 +0000 (07:23 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3@1779 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/doc/rrdbuild.pod

index 3f061f3558b7b0ed9a48cf2d3df9e54a6b9da7b7..afa15967af483cb0285411d81bd0f49fc4103dd9 100644 (file)
@@ -55,6 +55,7 @@ Now make sure the BUILD_DIR exists and go there:
 Lets first assume you already have all the necessary libraries
 pre-installed. 
 
+
  wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.3.6.tar.gz
  gunzip -c rrdtool-1.3.6.tar.gz | tar xf -
  cd rrdtool-1.3.6
@@ -176,12 +177,13 @@ the syntax again differs from system to system:
 
 if you are using the Sun Studio/Forte compiler, you may also want to set
 
- CFLAGS="-xO3 -xcode=pic13"   (SPARC)
- CFLAGS="-xO3 -Kpic"          (x86)
export CFLAGS="-xO3 -xcode=pic13"   (SPARC)
export CFLAGS="-xO3 -Kpic"          (x86)
 
 
 =item Linux
 
+ export CFLAGS="-O3 -fPIC"
  export LDFLAGS="-Wl,--rpath -Wl,${INSTALL_DIR}/lib" 
 
 =item HPUX
@@ -213,7 +215,7 @@ not available natively, here is how to compile it.
  wget http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz
  gunzip -c pkg-config-0.23.tar.gz | tar xf -
  cd pkg-config-0.23
- ./configure --prefix=$INSTALL_DIR CFLAGS="-O3 -fPIC"
+ ./configure --prefix=$INSTALL_DIR
  $MAKE
  $MAKE install
 
@@ -230,7 +232,7 @@ Chances are very high that you already have that on your system ...
  wget http://oss.oetiker.ch/rrdtool/pub/libs/zlib-1.2.3.tar.gz
  gunzip -c zlib-1.2.3.tar.gz | tar xf -
  cd zlib-1.2.3
- ./configure --prefix=$INSTALL_DIR CFLAGS="-O3 -fPIC" --shared
+ ./configure --prefix=$INSTALL_DIR --shared
  $MAKE
  $MAKE install
 
@@ -244,8 +246,8 @@ the end of line 4 means that line 4 and line 5 are on one line.
  cd $BUILD_DIR
  wget http://oss.oetiker.ch/rrdtool/pub/libs/libpng-1.2.18.tar.gz
  gunzip -c libpng-1.2.18.tar.gz | tar xf -
- cd libpng-1.2.10
env CFLAGS="-O3 -fPIC" ./configure --prefix=$INSTALL_DIR
+ cd libpng-1.2.18
+ ./configure --prefix=$INSTALL_DIR
  $MAKE
  $MAKE install
 
@@ -270,7 +272,7 @@ add the following at the start the configure line:
  wget http://oss.oetiker.ch/rrdtool/pub/libs/libxml2-2.6.32.tar.gz
  gunzip -c libxml2-2.6.32.tar.gz | tar xf -
  cd libxml2-2.6.32
- ./configure --prefix=$INSTALL_DIR CFLAGS="-O3 -fPIC"
+ ./configure --prefix=$INSTALL_DIR
  $MAKE
  $MAKE install
 
@@ -285,7 +287,7 @@ config file.
  wget http://oss.oetiker.ch/rrdtool/pub/libs/fontconfig-2.4.2.tar.gz
  gunzip -c fontconfig-2.4.2.tar.gz   | tar xf -
  cd fontconfig-2.4.2
- ./configure --prefix=$INSTALL_DIR CFLAGS="-O3 -fPIC" --with-freetype-config=$INSTALL_DIR/bin/freetype-config
+ ./configure --prefix=$INSTALL_DIR --with-freetype-config=$INSTALL_DIR/bin/freetype-config
  $MAKE
  $MAKE install
 
@@ -295,7 +297,7 @@ config file.
  wget http://oss.oetiker.ch/rrdtool/pub/libs/pixman-0.10.0.tar.gz
  gunzip -c pixman-0.10.0.tar.gz  | tar xf -
  cd pixman-0.10.0
- ./configure --prefix=$INSTALL_DIR CFLAGS="-O3 -fPIC"
+ ./configure --prefix=$INSTALL_DIR
  $MAKE
  $MAKE install
 
@@ -304,12 +306,11 @@ config file.
  cd $BUILD_DIR
  wget http://oss.oetiker.ch/rrdtool/pub/libs/cairo-1.6.4.tar.gz
  gunzip -c cairo-1.6.4.tar.gz   | tar xf -
- cd cairo-1.4.10
+ cd cairo-1.6.4
  ./configure --prefix=$INSTALL_DIR \
     --enable-xlib=no \
     --enable-xlib-render=no \
-    --enable-win32=no \
-    CFLAGS="-O3 -fPIC"
+    --enable-win32=no
  $MAKE
  $MAKE install
 
@@ -319,7 +320,7 @@ config file.
  wget http://oss.oetiker.ch/rrdtool/pub/libs/glib-2.15.4.tar.gz
  gunzip -c glib-2.15.4.tar.gz  | tar xf -
  cd glib-2.15.4
- ./configure --prefix=$INSTALL_DIR CFLAGS="-O3 -fPIC"
+ ./configure --prefix=$INSTALL_DIR
  $MAKE
  $MAKE install
 
@@ -329,7 +330,7 @@ config file.
  wget http://oss.oetiker.ch/rrdtool/pub/libs/pango-1.21.1.tar.bz2
  bunzip2 -c pango-1.21.1.tar.bz2 | tar xf -
  cd pango-1.21.1
- ./configure --prefix=$INSTALL_DIR CFLAGS="-O3 -fPIC" --without-x
+ ./configure --prefix=$INSTALL_DIR --without-x
  $MAKE
  $MAKE install