Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bd5ad88

Browse files
committedOct 26, 2013
PIC in DLL
1 parent eac800b commit bd5ad88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ openmp::
3737
$(MAKE) CFLAGSADD=-fopenmp OPENMPFLAGS="-Bstatic -lgomp" -j8 -$(MAKEFLAGS)
3838

3939
$(DLL) $(DLLIMP): $(OBJS)
40-
$(CC) -shared -o $(DLL) $(OBJS) $(LDFLAGS) -Wl,--out-implib,$(DLLIMP),--output-def,$(DLLDEF)
40+
$(CC) -fPIC -shared -o $(DLL) $(OBJS) $(LDFLAGS) -Wl,--out-implib,$(DLLIMP),--output-def,$(DLLDEF)
4141

4242
$(STATICLIB): $(OBJS)
4343
$(AR) $(ARFLAGS) $@ $^

0 commit comments

Comments
 (0)
Please sign in to comment.