OSDN Git Service

Win: pthread library is linked statically
authorToshi Nagata <alchemist.2005@nifty.com>
Sat, 25 Dec 2021 04:39:05 +0000 (13:39 +0900)
committerToshi Nagata <alchemist.2005@nifty.com>
Sat, 25 Dec 2021 04:39:05 +0000 (13:39 +0900)
Makefile_ortep3
amber11/src/config.h

index 729ac4f..f2778e5 100644 (file)
@@ -30,7 +30,7 @@ else
     CROSS_PREFIX=i686-w64-mingw32-
   endif
   FFLAGS=-std=legacy 
-  FSTATICFLAGS= -static-libgcc -Wl,-Bstatic -lgfortran -lquadmath -Wl,-Bdynamic -lm
+  FSTATICFLAGS= -static-libgcc -Wl,-Bstatic -lgfortran -lquadmath -lpthread -Wl,-Bdynamic -lm
   FLDFLAGS=-Wl,--stack=33554432 $(FSTATICFLAGS)
   EXE_SUFFIX=.exe
   FORTRAN = gcc
index e2d3c58..e36ea1d 100644 (file)
@@ -78,7 +78,7 @@ CPLUSPLUS=$(CROSS_PREFIX)g++
 CFLAGS= -DUSE_AMBER_C9XCOMPLEX -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE  $(AMBERBUILDFLAGS) -DWINDOWS=1
 OCFLAGS=-O3 -DUSE_AMBER_C9XCOMPLEX -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE $(AMBERBUILDFLAGS) -DWINDOWS=1
 NABFLAGS=
-FSTATICFLAGS= -static-libgcc -Wl,-Bstatic -lstdc++ -lgfortran -lquadmath -Wl,-Bdynamic -lm
+FSTATICFLAGS= -static-libgcc -Wl,-Bstatic -lstdc++ -lgfortran -lquadmath -lpthread -Wl,-Bdynamic -lm
 LDFLAGS=-Wl,--stack=0x01000000 $(AMBERBUILDFLAGS) -static-libgcc
 FLDFLAGS= $(FSTATICFLAGS)
 endif