Changeset 665

Show
Ignore:
Timestamp:
04/06/06 12:04:12 (7 years ago)
Author:
ahu
Message:

recursor separate distribution fixes

Location:
trunk/pdns/pdns
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/Makefile-recursor

    r641 r665  
    11SBINDIR=/usr/sbin/ 
    22 
    3 # for socket location, see config.h 
     3# for control socket location, see config.h 
    44 
    55OPTFLAGS?=-O3 
     
    77CFLAGS:=$(CFLAGS) -Wall $(OPTFLAGS) $(PROFILEFLAGS) 
    88 
    9 LDFLAGS+= $(PROFILEFLAGS) 
     9STATICFLAGS=-lstdc++ 
     10 
     11ifeq ($(STATIC),semi) 
     12        STATICFLAGS=-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic -static-libgcc -lm -lc 
     13endif 
     14ifeq ($(STATIC),full) 
     15        STATICFLAGS=-lstdc++ -lm -static 
     16endif 
     17 
     18LDFLAGS+= $(PROFILEFLAGS) $(STATICFLAGS) 
     19 
    1020all: pdns_recursor rec_control 
    1121 
     
    3040 
    3141pdns_recursor: $(PDNS_RECURSOR_OBJECTS) 
    32         g++ $(PDNS_RECURSOR_OBJECTS) $(LDFLAGS) -o $@ 
     42        gcc $(PDNS_RECURSOR_OBJECTS) $(LDFLAGS) -o $@ 
    3343 
    3444rec_control: $(REC_CONTROL_OBJECTS) 
    35         g++ $(REC_CONTROL_OBJECTS) $(LDFLAGS) -o $@ 
     45        gcc $(REC_CONTROL_OBJECTS) $(LDFLAGS) -o $@ 
    3646 
    3747 
  • trunk/pdns/pdns/README-recursor

    r645 r665  
    4343Do run with g++ 4.1 if you can, it is the best. 
    4444 
     45RUNNING ON A DIFFERENT MACHINE 
     46------------------------------ 
     47To prevent hassles with g++ 4.1 dependencies, you can build like this: 
     48   $ STATIC=semi make all 
     49or even 
     50   $ STATIC=full make all 
     51 
    4552PROBLEMS 
    4653--------