# Fedora has /usr/include/slang/slang.h, but ubuntu /usr/include/slang.h
CFLAGS += -I/usr/include/slang
CFLAGS += -DHAVE_SLANG_SUPPORT
- EXTLIBS += -lslang
+ EXTLIBS += -Wl,-Bstatic -lslang -Wl,-Bdynamic
$(call detected,CONFIG_SLANG)
endif
endif
%define with_bootwrapper %{?_without_bootwrapper: 0} %{?!_without_bootwrapper: 1}
# Want to build a the vsdo directories installed
%define with_vdso_install %{?_without_vdso_install: 0} %{?!_without_vdso_install: 1}
+# TUI for perf
+%define with_perf_tui 1
# Build the kernel-doc package, but don't fail the build if it botches.
# Here "true" means "continue" and "false" means "fail the build".
%if %{with_dtrace}
BuildRequires: libdtrace-ctf-devel >= 0.5.0
%endif
+%if %{with_perf_tui}
+BuildRequires: slang-devel, slang-static
+%endif
BuildConflicts: rhbuildsys(DiskFree) < 500Mb
Source0: ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-%{kversion}.tar.bz2
%define with_bootwrapper %{?_without_bootwrapper: 0} %{?!_without_bootwrapper: 1}
# Want to build a the vsdo directories installed
%define with_vdso_install %{?_without_vdso_install: 0} %{?!_without_vdso_install: 1}
+# TUI for perf
+%define with_perf_tui 1
# Build the kernel-doc package, but don't fail the build if it botches.
# Here "true" means "continue" and "false" means "fail the build".
%if %{with_dtrace}
BuildRequires: libdtrace-ctf-devel >= 0.5.0
%endif
+%if %{with_perf_tui}
+BuildRequires: slang-devel, slang-static
+%endif
BuildConflicts: rhbuildsys(DiskFree) < 500Mb
Source0: ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-%{kversion}.tar.bz2