Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 415685 | Differences between
and this patch

Collapse All | Expand All

(-)magicrescue-1.1.9/Makefile.in (-1 / +1 lines)
Lines 21-27 Link Here
21
	$(CC) -o $@ $(LDFLAGS) $(MAGICRESCUE_OBJS)
21
	$(CC) -o $@ $(LDFLAGS) $(MAGICRESCUE_OBJS)
22
22
23
dupemap: $(DUPEMAP_OBJS)
23
dupemap: $(DUPEMAP_OBJS)
24
	$(CC) -o $@ $(LDFLAGS) $(DBM_LDFLAGS) $(DUPEMAP_OBJS)
24
	$(CC) -o $@ $(LDFLAGS) $(DUPEMAP_OBJS) $(DBM_LDFLAGS)
25
 
25
 
26
tools/inputseek: $(INPUTSEEK_OBJS)
26
tools/inputseek: $(INPUTSEEK_OBJS)
27
	$(CC) -o $@ $(LDFLAGS) $(INPUTSEEK_OBJS)
27
	$(CC) -o $@ $(LDFLAGS) $(INPUTSEEK_OBJS)
(-)magicrescue-1.1.9/config.d/50dbm (-5 / +1 lines)
Lines 14-31 Link Here
14
	    flag="`echo $flag|sed 's/./-l&/'`"
14
	    flag="`echo $flag|sed 's/./-l&/'`"
15
	    echo "trying to link with flags [$flag]" >&5
15
	    echo "trying to link with flags [$flag]" >&5
16
	    
16
	    
17
	    bak_LDFLAGS="$LDFLAGS"
17
            LIBS="$flag"
18
	    LDFLAGS="$LDFLAGS $flag"
19
	    if conftest_link; then
18
	    if conftest_link; then
20
		# we found it!
19
		# we found it!
21
		LDFLAGS="$bak_LDFLAGS"
22
		DBM_LDFLAGS="$flag"
20
		DBM_LDFLAGS="$flag"
23
		env_vars="$env_vars DBM_LDFLAGS"
21
		env_vars="$env_vars DBM_LDFLAGS"
24
		echo "#define $dbmdef" >> config.h
22
		echo "#define $dbmdef" >> config.h
25
		echo "#define HAVE_NDBM" >> config.h
23
		echo "#define HAVE_NDBM" >> config.h
26
		return 0
24
		return 0
27
	    else
28
		LDFLAGS="$bak_LDFLAGS"
29
	    fi
25
	    fi
30
	done
26
	done
31
	
27
	
(-)magicrescue-1.1.9/configure (-2 / +2 lines)
Lines 63-71 Link Here
63
}
63
}
64
64
65
conftest_link() {
65
conftest_link() {
66
    echo "$CC -o conftest $LDFLAGS conftest.o" >&5
66
    echo "$CC -o conftest $LDFLAGS conftest.o $LIBS" >&5
67
    echo >&5
67
    echo >&5
68
    $CC -o conftest $LDFLAGS conftest.o >&5 2>&5 \
68
    $CC -o conftest $LDFLAGS conftest.o $LIBS >&5 2>&5 \
69
	&& [ -x conftest ] && ./conftest 2>&5
69
	&& [ -x conftest ] && ./conftest 2>&5
70
}
70
}
71
71

Return to bug 415685