Ticket #7945: 0001-set-DYNAMIC_GHC_PROGRAMS-to-NO-if-platform-does-not-.patch

File 0001-set-DYNAMIC_GHC_PROGRAMS-to-NO-if-platform-does-not-.patch, 780 bytes (added by kgardas, 11 months ago)
  • mk/config.mk.in

    From c01e347a4262a97e49fd34e8b97c081f3b5717ad Mon Sep 17 00:00:00 2001
    From: Karel Gardas <karel.gardas@centrum.cz>
    Date: Fri, 24 May 2013 23:04:56 +0200
    Subject: [PATCH] set DYNAMIC_GHC_PROGRAMS to NO if platform does not support shared libs
    
    ---
     mk/config.mk.in |    2 ++
     1 files changed, 2 insertions(+), 0 deletions(-)
    
    diff --git a/mk/config.mk.in b/mk/config.mk.in
    index 5ef1f5c..0429796 100644
    a b else ifeq "$(TargetOS_CPP)" "freebsd" 
    138138# FreeBSD cannot do proper resolution for $ORIGIN (due to a bug in 
    139139# rtld(1)), so disable it by default (see #7819). 
    140140DYNAMIC_GHC_PROGRAMS = NO 
     141else ifeq "$(PlatformSupportsSharedLibs)" "NO" 
     142DYNAMIC_GHC_PROGRAMS = NO 
    141143else 
    142144DYNAMIC_GHC_PROGRAMS = YES 
    143145endif