Hi,

Bellow I enclosed patchs to existing Open Watcom makefile to fix a few
problems.

- Missing -br option for DLL version

- Missing debug info if create debug version

- Use DLL version of OW linker

src/Makefile.Watcom

28a29,33

> ! if $(__VERSION__) > 1270

> ! loaddll wlink wlinkd

> ! else

> ! loaddll wlink wlink

> ! endif

82a88

> CFLAGS += -br

123,128c129,137

< %create $^@

< @%append $^@ system nt

< @%append $^@ file { $(OBJS) }

< @%append $^@ option quiet, map, caseexact, eliminate,

< @%append $^@ res=$(RESOURCE) libpath $(SYS_LIBS)

< # @%append $^@ library clib3r.lib

---

> %create $^@

> !ifdef %debug

> @%append $^@ debug all

> @%append $^@ option symfile

> !endif

> @%append $^@ system nt

> @%append $^@ file { $(OBJS) }

> @%append $^@ option quiet, map, caseexact, eliminate,

> @%append $^@ res=$(RESOURCE) libpath $(SYS_LIBS)



lib/Makefile.Watcom

28a29,33

> ! if $(__VERSION__) > 1270

> ! loaddll wlink wlinkd

> ! else

> ! loaddll wlink wlink

> ! endif

138c143

< $(CC) $(CFLAGS) -bd $[@ -fo=$^@

---

> $(CC) $(CFLAGS) -bd -br $[@ -fo=$^@

145,151c150,159

< %create $^@

< @%append $^@ system nt dll

< @%append $^@ file { $(OBJS_DYN) }

< @%append $^@ option quiet, map, caseexact, eliminate,
implib=$(LIBNAME)_imp.lib,

< @%append $^@ res=$(RESOURCE) libpath $(SYS_LIBS)

< # @%append $^@ library clib3r.lib

< @%append $^@ library wldap32.lib

---

> %create $^@

> !ifdef %debug

> @%append $^@ debug all

> @%append $^@ option symfile

> !endif

> @%append $^@ system nt dll

> @%append $^@ file { $(OBJS_DYN) }

> @%append $^@ option quiet, map, caseexact, eliminate,
implib=$(LIBNAME)_imp.lib,

> @%append $^@ res=$(RESOURCE) libpath $(SYS_LIBS)

> @%append $^@ library wldap32.lib

Regards

Jiri
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to