Skip to content

Commit

Permalink
gptfdisk: Specify -arch flags in FATBINFLAGS
Browse files Browse the repository at this point in the history
since the Makefile makes this variable available for this purpose.

A section of the patchfile is therefore unnecessary.

See: https://trac.macports.org/ticket/54575
  • Loading branch information
ryandesign committed Jun 4, 2018
1 parent 24138e1 commit d46695c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion sysutils/gptfdisk/Portfile
Expand Up @@ -35,7 +35,8 @@ depends_lib port:ncurses \
use_configure no

build.args -f Makefile.mac \
CC="${configure.cc} [get_canonical_archflags cc]"
CC="${configure.cc}" \
FATBINFLAGS="[get_canonical_archflags]"

destroot {
xinstall -m 0755 -d ${destroot}${prefix}/bin
Expand Down
3 changes: 1 addition & 2 deletions sysutils/gptfdisk/files/patch-Makefile.mac.diff
Expand Up @@ -4,8 +4,7 @@
+prefix=__PREFIX__
CC=gcc
CXX=clang++
-FATBINFLAGS=-arch x86_64 -arch i386 -mmacosx-version-min=10.4
+FATBINFLAGS=
FATBINFLAGS=-arch x86_64 -arch i386 -mmacosx-version-min=10.4
CFLAGS=$(FATBINFLAGS) -O2 -D_FILE_OFFSET_BITS=64 -g
-#CXXFLAGS=-O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -I/opt/local/include -I/usr/local/include -I/opt/local/include -g
-CXXFLAGS=$(FATBINFLAGS) -O2 -Wall -D_FILE_OFFSET_BITS=64 -I/opt/local/include -I /usr/local/include -I/opt/local/include -g
Expand Down

0 comments on commit d46695c

Please sign in to comment.