]> git.pld-linux.org Git - packages/grub.git/commitdiff
- add static bcond (usable for example for amd64 machines)
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 12 May 2005 19:05:24 +0000 (19:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    grub.spec -> 1.96

grub.spec

index 5c643f14fe0460d05241628110149f276839b88c..2f9079adcfc3773b63823a6a05d73bb12e6d967b 100644 (file)
--- a/grub.spec
+++ b/grub.spec
@@ -5,6 +5,8 @@
 # Conditional build:
 %bcond_with    splashimage     # removes some ethernet cards support
                                # (too much memory occupied?)
+%bcond_with    static          # builds static version
+
 #
 Summary:       GRand Unified Bootloader
 Summary(pl):   GRUB - bootloader dla x86
@@ -40,6 +42,10 @@ BuildRequires:       autoconf
 BuildRequires: automake
 BuildRequires: libtool
 BuildRequires: ncurses-devel
+%if %{with static}
+BuildRequires: ncurses-static
+BuildRequires: glibc-static
+%endif
 # needed for 'cmp' program
 Requires:      diffutils
 Provides:      bootloader
@@ -152,6 +158,9 @@ rm -rf doc/*info*
 %{__autoconf}
 %{__automake}
 CFLAGS="-Os %{?debug:-g}" ; export CFLAGS
+%if %{with static}
+LDFLAGS="-static"; export LDFLAGS
+%endif
 %configure \
 %if %{without splashimage}
        --enable-3c503 \
This page took 0.051948 seconds and 4 git commands to generate.