patches/dmalloc/5.5.2/140-shared_library.patch
author Remy Bohmer <linux@bohmer.net>
Sun Jul 11 22:23:34 2010 +0200 (2010-07-11)
changeset 2021 3e52a1510f87
parent 103 b6e20abe9256
permissions -rw-r--r--
debug/gdb: Fix compilation for Mingw hosts

GDB requires PDcurses instead of ncurses while running on Windows.
So, do not always compile ncurses in case GDB needs to build.

PDcurses is provided by an earlier build step and is not described in
this file.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
[yann.morin.1998@anciense.nib.fr: we already have a way to detect ncurses usage]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 This patch makes building the shared library possible.
     2 
     3 Copyright 2007 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
     4 Licensed to you as dmalloc-5.5.2 is.
     5 
     6 diff -dur dmalloc-5.5.2.orig/Makefile.in dmalloc-5.5.2/Makefile.in
     7 --- dmalloc-5.5.2.orig/Makefile.in	2007-05-14 19:26:14.000000000 +0200
     8 +++ dmalloc-5.5.2/Makefile.in	2007-05-18 15:54:04.000000000 +0200
     9 @@ -257,7 +257,7 @@
    10  # via: http://256.com/gray/email.html
    11  $(LIB_SL) : $(LIBRARY)
    12  	rm -f $@ $@.t
    13 -	@shlinkargs@ $(LIBRARY) $(OBJS) $(NORMAL_OBJS)
    14 +	@shlinkargs@ $(LIBRARY)
    15  	mv $@.t $@
    16  
    17  $(LIBRARY) : $(OBJS) $(NORMAL_OBJS)
    18 @@ -270,7 +270,7 @@
    19  
    20  $(LIB_TH_SL) : $(LIB_TH)
    21  	rm -f $@ $@.t
    22 -	@shlinkargs@ $(LIB_TH) $(OBJS) $(THREAD_OBJS)
    23 +	@shlinkargs@ $(LIB_TH)
    24  	mv $@.t $@
    25  
    26  $(LIB_CXX) : $(OBJS) $(NORMAL_OBJS) $(CXX_OBJS)
    27 @@ -279,7 +279,7 @@
    28  
    29  $(LIB_CXX_SL) : $(LIB_CXX)
    30  	rm -f $@ $@.t
    31 -	@shlinkargs@ $(LIB_CXX) $(OBJS) $(NORMAL_OBJS) $(CXX_OBJS)
    32 +	@shlinkargs@ $(LIB_CXX)
    33  	mv $@.t $@
    34  
    35  $(LIB_TH_CXX) : $(OBJS) $(THREAD_OBJS) $(CXX_OBJS)
    36 @@ -288,7 +288,7 @@
    37  
    38  $(LIB_TH_CXX_SL) : $(LIB_TH_CXX)
    39  	rm -f $@ $@.t
    40 -	@shlinkargs@ $(LIB_TH_CXX) $(OBJS) $(THREAD_OBJS) $(CXX_OBJS)
    41 +	@shlinkargs@ $(LIB_TH_CXX)
    42  	mv $@.t $@
    43  
    44  threadssl : $(LIB_TH_SL)