diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2003-07-28 21:15:03 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2003-07-28 21:15:03 +0000 |
commit | 01e38f9371e0d7a4db5457394b90d23a08eb03f7 (patch) | |
tree | 79e8641cf0f956974ff777a234f575e832eb0d19 /pkgs/fontconfig | |
parent | 3372b3f8fd2f3619b62203080225ff15f3bc9ec9 (diff) |
* Use rpaths to ensure that executable and dynamic libraries are automatically linked
against the right dynamic libraries. set-env.sh add the right linker flags to the NIX_LDFLAGS environment variable, which is passed by gcc-wrapper to the linker. (In many cases these flags could just be passed through LDFLAGS to configure scripts; however, in many other cases this doesn't work properly.) --This line, and those below, will be ignored-- M pkgs/atk/atk-build.sh M pkgs/glibc/glibc-build.sh M pkgs/expat/expat-build.sh M pkgs/freetype/freetype-build.sh M pkgs/system/populate-linkdirs.pl M pkgs/sdf2/sdf2-build.sh M pkgs/pspell/pspell-build.sh M pkgs/subversion/subversion-build.sh M pkgs/helpers/set-env.sh M pkgs/pango/pango-build.sh M pkgs/strategoxt/strategoxt-build.sh M pkgs/aterm/aterm-build.sh M pkgs/libxml2/libxml2-build.sh M pkgs/glib-1/glib-build.sh M pkgs/glib/glib-build.sh M pkgs/pan/pan.fix M pkgs/pan/pan-build.sh M pkgs/libxslt/libxslt-build.sh M pkgs/httpd/httpd-build.sh M pkgs/openssl/openssl-build.sh M pkgs/gtkspell/gtkspell-build.sh M pkgs/fontconfig/fontconfig.fix M pkgs/fontconfig/fontconfig-build.sh M pkgs/gnet/gnet-build.sh M pkgs/gtk+-1/gtk+-build.sh M pkgs/gtk+/gtk+-build.sh M pkgs/stdenv/gcc-wrapper.sh M pkgs/stdenv/stdenv-build.sh M pkgs/db4/db4-build.sh M pkgs/db4/db4.fix M pkgs/MPlayer/MPlayer-build.sh M pkgs/swig/swig-build.sh svn path=/nixpkgs/trunk/; revision=213
Diffstat (limited to 'pkgs/fontconfig')
-rwxr-xr-x | pkgs/fontconfig/fontconfig-build.sh | 11 | ||||
-rw-r--r-- | pkgs/fontconfig/fontconfig.fix | 1 |
2 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/fontconfig/fontconfig-build.sh b/pkgs/fontconfig/fontconfig-build.sh index e4b6f563d21d9..04d3ba388eef0 100755 --- a/pkgs/fontconfig/fontconfig-build.sh +++ b/pkgs/fontconfig/fontconfig-build.sh @@ -1,13 +1,18 @@ #! /bin/sh +export NIX_LDFLAGS=-Wl,-s + . $stdenv/setup || exit 1 -envpkgs=$freetype -. $setenv +envpkgs="$freetype $expat" +. $setenv || exit 1 tar xvfz $src || exit 1 cd fcpackage*/fontconfig || exit 1 -LDFLAGS=-Wl,-S ./configure --prefix=$out --with-confdir=$out/etc/fonts --x-includes=/usr/X11/include --x-libraries=/usr/X11/lib || exit 1 +./configure --prefix=$out --with-confdir=$out/etc/fonts \ + --x-includes=/usr/X11/include --x-libraries=/usr/X11/lib \ + --with-expat-includes=$expat/include --with-expat-lib=$expat/lib || exit 1 make || exit 1 make install || exit 1 + echo $envpkgs > $out/envpkgs || exit 1 diff --git a/pkgs/fontconfig/fontconfig.fix b/pkgs/fontconfig/fontconfig.fix index 07c00f1a193d7..e953222c0cea0 100644 --- a/pkgs/fontconfig/fontconfig.fix +++ b/pkgs/fontconfig/fontconfig.fix @@ -11,5 +11,6 @@ Package( , ("stdenv", IncludeFix("stdenv/stdenv.fix")) , ("freetype", IncludeFix("freetype/freetype.fix")) + , ("expat", IncludeFix("expat/expat.fix")) ] ) |