Ignore:
Timestamp:
Nov 19, 2008, 2:41:24 PM (16 years ago)
Author:
garnier
Message:

change and better Leopard check on Mac OSX

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/config/sys/Darwin-g++.gmk

    r875 r886  
    6464  endif
    6565  ifndef OGLLIBS
    66     OGLLIBS   := -L$(OGLHOME)/lib -lGLU -lGL
    67     ifeq ($(G4SYSTEM),Darwin-g++)
    68           # the following lines are for building on MacOSX 10.5 "Leopard"
     66    ifeq ($(shell uname -r | sed 's/\([0-9]*\).[0-9]*.[0-9]*/\1/'),9)
     67      # the following lines are for building on MacOSX 10.5 "Leopard"
    6968      OGLLIBS   := $(shell test -f /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib && echo " -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib")
    70       endif
     69    else
     70      OGLLIBS   := -L$(OGLHOME)/lib -lGLU -lGL
     71    endif
    7172  endif
    7273  ifndef QTHOME
     
    9394    endif
    9495  endif
    95 
    9696  ifndef QTLIBPATH
    9797    ifeq ($(QT_VERSION),3)
Note: See TracChangeset for help on using the changeset viewer.