--- src/Make.inc/Makefile.inc.i686_pc_freebsd.orig 2017-02-22 07:20:57 UTC +++ src/Make.inc/Makefile.inc.i686_pc_freebsd @@ -1,21 +1,21 @@ EXE = -LIB = .a +LIB = .so OBJ = .o MAKE = gmake -AR = ar -ARFLAGS = -ruv +AR = $(CC) +ARFLAGS = -shared -Wl,-soname,$@ -o CAT = cat -CCS = cc +CCS = $(CC) CCP = mpicc -CCD = mpicc -CFLAGS += -std=c99 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_PTHREAD -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -CLIBFLAGS = -LDFLAGS += -lz -lm -lpthread +CCD = $(CC) +CFLAGS += -std=c99 -fPIC -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_PTHREAD -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -DIDXSIZE64 -DINTSIZE64 +CLIBFLAGS = -fPIC +LDFLAGS += -lz -lm -lthread CP = cp LEX = flex -Pscotchyy -olex.yy.c LN = ln MKDIR = mkdir MV = mv -RANLIB = ranlib +RANLIB = echo YACC = bison -pscotchyy -y -b y