Add -fPIC flag in .c to .o makefile rule.

This commit is contained in:
agibert 2010-06-06 21:28:14 +00:00
parent 90eb853801
commit ec7a688881

View File

@ -1,7 +1,7 @@
# $RCSfile: Makefile.rule,v $
# $Revision: 1.4 $
# $Revision: 1.5 $
# $Name: $
# $Date: 2003/07/16 23:37:37 $
# $Date: 2010/06/06 21:28:14 $
# $Author: agibert $
#------------------------------------------------------------------------------
@ -20,7 +20,7 @@ default:all
# Here are all the rules allowing to compile sources files
# c -> o
%.o:%.c
$(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
$(CC) $(CFLAGS) $(INCLUDE) -fPIC -c $< -o $@
# c -> executable
.c :