File: dyn_link_GLEW.patch

package info (click to toggle)
asymptote 3.05%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,420 kB
  • sloc: cpp: 172,663; ansic: 69,690; python: 14,957; sh: 5,605; javascript: 4,871; lisp: 1,507; perl: 1,417; makefile: 1,026; yacc: 610; lex: 449; xml: 182; asm: 8
file content (51 lines) | stat: -rw-r--r-- 2,149 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Description: We link dynamically w/ libglew2.1.
Author: Hilmar Preusse <hille42@web.de>
Forwarded: not-needed
Last-Update: 2025-04-17

--- asymptote.orig/Makefile.in
+++ asymptote/Makefile.in
@@ -165,7 +165,7 @@
 	echo @set Datadir @datadir@ >> $@
 	echo @set Docdir @docdir@ >> $@
 
-asymptote.so: $(COREFILES:=.pic.o) glew.o
+asymptote.so: $(COREFILES:=.pic.o) -lGLEW
 	$(CXX) $(OPTS) -shared -o asymptote.so revision.o $(COREFILES:=.pic.o) $(SHAREDLIBS)
 
 $(LSP_ROOT)/liblspcpp.a:
--- asymptote.orig/configure.ac
+++ asymptote/configure.ac
@@ -638,8 +638,8 @@
    AC_DEFINE(HAVE_LIBGL,1,[libgl is enabled])
    AC_DEFINE(FREEGLUT,1,[Freeglut is enabled])
    AC_DEFINE(HAVE_LIBGLUT,1,[Freeglut library is available])
-   INCL=$INCL" -Ibackports/glew/include"
-   GLEW="glew.o "
+   # INCL=$INCL" -Ibackports/glew/include"
+   GLEW="-lGLEW "
    ADD_VCPKG_LIB_FOR_PKGCONFIG(glut)
 else  # managed by the system
    AC_CHECK_HEADERS([ncurses/curses.h ncurses.h curses.h],[break])
@@ -653,8 +653,8 @@
               AC_CHECK_HEADER(GLUT/glut.h, [AC_DEFINE(HAVE_LIBGLUT,1,
                    DEFINE_LIB[GLUT])
                            LIBS=$LIBS"-framework GLUT -framework OpenGL -framework Cocoa "
-                           INCL=$INCL" -Ibackports/glew/include"
-                           GLEW="glew.o "],
+                           # INCL=$INCL" -Ibackports/glew/include"
+                           GLEW="-lGLEW "],
                                  AC_MSG_NOTICE([*** Could not find GLUT: will compile without OpenGLLUT support ***]))
         ;;
      *)
@@ -664,8 +664,8 @@
                                  [AC_DEFINE(HAVE_LIBGL,1,
                              DEFINE_LIB([GL]))
                              LIBS=$LIBS"-lGL "
-                             GLEW="glew.o "
-                             INCL=$INCL" -Ibackports/glew/include"],
+                             GLEW="-lGLEW "
+                             # INCL=$INCL" -Ibackports/glew/include"],
                                    AC_MSG_NOTICE([*** Could not find libGL: will compile without OpenGL support ***]))
 esac
    if test "x$enable_offscreen" = "xyes"; then