Add -fPIC flag in .c to .o makefile rule.
This commit is contained in:
parent
90eb853801
commit
ec7a688881
@ -1,7 +1,7 @@
|
|||||||
# $RCSfile: Makefile.rule,v $
|
# $RCSfile: Makefile.rule,v $
|
||||||
# $Revision: 1.4 $
|
# $Revision: 1.5 $
|
||||||
# $Name: $
|
# $Name: $
|
||||||
# $Date: 2003/07/16 23:37:37 $
|
# $Date: 2010/06/06 21:28:14 $
|
||||||
# $Author: agibert $
|
# $Author: agibert $
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -20,7 +20,7 @@ default:all
|
|||||||
# Here are all the rules allowing to compile sources files
|
# Here are all the rules allowing to compile sources files
|
||||||
# c -> o
|
# c -> o
|
||||||
%.o:%.c
|
%.o:%.c
|
||||||
$(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
|
$(CC) $(CFLAGS) $(INCLUDE) -fPIC -c $< -o $@
|
||||||
|
|
||||||
# c -> executable
|
# c -> executable
|
||||||
.c :
|
.c :
|
||||||
|
Loading…
Reference in New Issue
Block a user