Subject: bug#17438: xrandr linking problem on OS X

From: Glenn Morris <[email-masked]>
Date: Thu, 08 May 2014 16:22:10 -0400

Package: emacs
Version: 24.4.50
Severity: important

hydra os x builds are currently failing with:
    
    Undefined symbols:
      "_XRRGetCrtcInfo", referenced from:
          _Fx_display_monitor_attributes_list in xfns.o
etc.

I think this is the first time it happened:
http://hydra.nixos.org/build/10792831       # trunk r117055

I think this is a due to a missing -lXrandr.

It looks like

pkg-config --libs "xrandr > 1.2.2"

returns "", but with exit status 0?

Compare with:
http://hydra.nixos.org/build/10778330   # trunk r117044

where the pkg-config query for xrandr failed, but the old-fashioned
fallback worked and added -lXrandr.