mxcl/homebrew — Issue #9733: Irssi ignores ARCH_FLAGS, fails link w/ gettext & wrong arch selected
Author: sparcdr
Created: 2012-01-22 23:26:27+00:00
State: open

I seem to have ran into an issue where two symbols were unresolved, one being gettext, due to Irssi not caring about what arch the libs were, somewhere around the configure stage. So I hacked at the irssi spec and did the following to make Irssi compile:

Changed former def install to:
def install
ENV.append 'ARCHFLAGS', ' ' # wtf?
system "MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS='-arch x86_64' LDFLAGS='-arch x86_64' CXXFLAGS='-arch x86_64' ./configure --prefix=#{prefix} --sysconfdir=#{etc} --with-perl=yes --with-perl-lib=#{lib}/perl5/site_perl --with-bot --with-proxy --enable-ssl --enable-ipv6 --with-socks"
# 'make' and 'make install' must be done separately on some systems
system "make"
system "make install"
end

Used brew install irssi --use-gcc instead of letting it try llvm. Clean it up and commit if you also ran into this. It's a crap hack, so get the infos from gettext.

OS: Mac OS X 10.6.8 Snow Leopard (Darwin 10.8.0)
System: MacBook Pro 3,1 (Intel Core 2 Duo)
Compiler: gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
XCode: 4.0