Changeset 7281ad1 for Makefile


Ignore:
Timestamp:
2012-09-15T15:59:17Z (7 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
b3d99e3
Parents:
68709f5
Message:

Allow building position-independent executables. #981, patch from brainsmoke.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r68709f5 r7281ad1  
    171171$(objects): %.o: $(_SRCDIR_)%.c
    172172        @echo '*' Compiling $<
    173         @$(CC) -c $(CFLAGS) $< -o $@
     173        @$(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
    174174
    175175$(objects): Makefile Makefile.settings config.h
     
    177177$(OUTFILE): $(objects) $(subdirs)
    178178        @echo '*' Linking $(OUTFILE)
    179         @$(CC) $(objects) $(subdirobjs) -o $(OUTFILE) $(LFLAGS) $(EFLAGS)
     179        @$(CC) $(objects) $(subdirobjs) -o $(OUTFILE) $(LDFLAGS_BITLBEE) $(LFLAGS) $(EFLAGS)
    180180ifndef DEBUG
    181181        @echo '*' Stripping $(OUTFILE)
Note: See TracChangeset for help on using the changeset viewer.