Skip to content

Commit

Permalink
Is the linker fussy about argument order?
Browse files Browse the repository at this point in the history
  • Loading branch information
jonclayden committed Jan 11, 2024
1 parent fc4564e commit aaf1370
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions standalone/nii_info.make
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ zlib/libz.a:
cd zlib && ./configure --static && $(MAKE) libz.a CC="$(CC)"

nii_info: nii_info.cpp $(NIFTILIB1_OBJECTS)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $(LIBS) -o $@ $^
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ $(LDFLAGS) $(LIBS) $^

nii2_info: nii_info.cpp $(NIFTILIB2_OBJECTS)
$(CXX) $(CPPFLAGS) $(NIFTILIB2_CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $(LIBS) -o $@ $^
$(CXX) $(CPPFLAGS) $(NIFTILIB2_CPPFLAGS) $(CXXFLAGS) -o $@ $(LDFLAGS) $(LIBS) $^

clean:
rm -rf $(NIFTILIB1_OBJECTS) $(NIFTILIB2_OBJECTS) zlib nii_info nii2_info

0 comments on commit aaf1370

Please sign in to comment.