Skip to content

Commit

Permalink
Windows build of xdrfile needed a lot of help
Browse files Browse the repository at this point in the history
  • Loading branch information
e-pettersen committed Jan 18, 2025
1 parent e7ea636 commit 200a828
Show file tree
Hide file tree
Showing 2 changed files with 24,506 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/bundles/md_crds/gromacs/Makefile.xdrfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@ include $(TOP)/mk/config.make

include Makefile.common

QUOTE_CC := $(subst ','\'',$(CC) $(TARGET_ARCH))
QUOTE_CXX := $(subst ','\'',$(CXX) $(TARGET_ARCH))
# The configure script checks for the compiler banner message, so..
VERBOSE_CC := $(subst -nologo,,$(CC))
VERBOSE_CXX := $(subst -nologo,,$(CXX))
QUOTE_CC := $(subst ','\'',$(VERBOSE_CC) $(TARGET_ARCH))
QUOTE_CXX := $(subst ','\'',$(VERBOSE_CXX) $(TARGET_ARCH))

# Make xdrfile use our compiler options
ENV_CONFIGURE = env CC=gcc CXX=g++ LDFLAGS="$(TARGET_ARCH) -O3 -Wall -Wextra"
ENV_CONFIGURE = CC='$(QUOTE_CC)' CXX='$(QUOTE_CXX)' LDFLAGS="$(TARGET_ARCH) $(LDFLAGS)" CFLAGS=

PATCHES =

Expand All @@ -41,6 +44,7 @@ ifneq ($(filter $(MSYSTEM),MSYS MINGW64),)
# Though it says 'mingw32' inspection of the generated static library shows x86_64
cd $(XDRFILE_LIB_SOURCE) ; env $(ENV_CONFIGURE) ./configure --build=x86_64-w64-mingw32 --enable-shared --with-pic
else
cp configure.edited $(XDRFILE_LIB_SOURCE)/configure
cd $(XDRFILE_LIB_SOURCE) ; env $(ENV_CONFIGURE) ./configure --enable-shared --with-pic
endif

Expand Down
Loading

0 comments on commit 200a828

Please sign in to comment.