Changeset 14830 in project


Ignore:
Timestamp:
05/29/09 21:11:25 (10 years ago)
Author:
sjamaan
Message:

Try to be more flexible in C/ldflags by using imlib2-config, and update for X11R7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/4/imlib2/trunk/imlib2.setup

    r12156 r14830  
    11#+(and unix (not macosx))
    2 (define RPATH-FLAGS "-Wl,-R/usr/X11R6/lib")
     2(define RPATH-FLAGS "-Wl,-R/usr/X11R6/lib -Wl,-R/usr/X11R7/lib")
    33#+macosx
    44(define RPATH-FLAGS "")
    55
    66(define with-x?
    7   `(test-compile "int main(){ return 0; }" #:ldflags "-L/usr/X11R6/lib ,RPATH-FLAGS -lX11"))
     7  `(test-compile "int main(){ return 0; }" #:ldflags "`freetype-config --libs` ,RPATH-FLAGS"))
    88
    99(if with-x?
    1010  (compile -feature with-x -s -O2 -d0
    1111    imlib2.scm
    12     -I/usr/X11R6/include
    13     -lImlib2 "`freetype-config --libs`" -L/usr/X11R6/lib ,RPATH-FLAGS -lX11 -lXext
     12    "`imlib2-config --libs`" "`imlib2-config --cflags`" ,RPATH-FLAGS
     13    "`freetype-config --libs`" "`freetype-config --cflags`"
     14    -lX11 -lXext
    1415    -j imlib2)
    1516  (compile -s -O2 -d0
Note: See TracChangeset for help on using the changeset viewer.